File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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" ) ) ) ]
1313use 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}
You can’t perform that action at this time.
0 commit comments