Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4c7781d

Browse files
committedJan 11, 2025·
wayland: fix docs on non-wayland platforms
1 parent 0cf8781 commit 4c7781d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/platform/wayland.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use std::ffi::c_void;
1818
use std::ptr::null_mut;
1919

20+
#[cfg(wayland_platform)]
2021
use sctk::reexports::client::Proxy;
2122

2223
use crate::event_loop::{ActiveEventLoop, EventLoop, EventLoopBuilder};
@@ -84,6 +85,7 @@ pub trait WindowExtWayland {
8485
fn xdg_toplevel(&self) -> *mut c_void;
8586
}
8687

88+
#[cfg(wayland_platform)]
8789
impl WindowExtWayland for dyn CoreWindow + '_ {
8890
#[inline]
8991
fn xdg_toplevel(&self) -> *mut c_void {

0 commit comments

Comments
 (0)
Please sign in to comment.