Skip to content

Commit 162c6a3

Browse files
jf2048bilelmoussaoui
authored andcommitted
gdk4-wayland: Use wayland_client::Display instead of a display proxy
1 parent 9b3936f commit 162c6a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gdk4-wayland/src/wayland_display.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use khronos_egl as egl;
1111
#[cfg(any(feature = "wayland_crate", feature = "dox"))]
1212
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))]
1313
use wayland_client::{
14-
protocol::{wl_compositor::WlCompositor, wl_display::WlDisplay},
15-
sys::client::wl_proxy,
14+
protocol::wl_compositor::WlCompositor,
15+
sys::client::{wl_display, wl_proxy},
1616
Proxy,
1717
};
1818

@@ -47,10 +47,10 @@ impl WaylandDisplay {
4747
#[doc(alias = "get_wl_display")]
4848
#[cfg(any(feature = "wayland_crate", feature = "dox"))]
4949
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland_crate")))]
50-
pub fn wl_display(&self) -> WlDisplay {
50+
pub fn wl_display(&self) -> wayland_client::Display {
5151
unsafe {
5252
let ptr = ffi::gdk_wayland_display_get_wl_display(self.to_glib_none().0);
53-
Proxy::from_c_ptr(ptr as *mut wl_proxy).into()
53+
wayland_client::Display::from_external_display(ptr as *mut wl_display)
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)