Skip to content

Commit

Permalink
wayland: fix docs on non-wayland platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Jan 26, 2025
1 parent 58f369c commit 116c68e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use std::ffi::c_void;
use std::ptr::null_mut;

#[cfg(wayland_platform)]
use sctk::reexports::client::Proxy;

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

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

0 comments on commit 116c68e

Please sign in to comment.