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;
11
11
#[ cfg( any( feature = "wayland_crate" , feature = "dox" ) ) ]
12
12
#[ cfg_attr( feature = "dox" , doc( cfg( feature = "wayland_crate" ) ) ) ]
13
13
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} ,
16
16
Proxy ,
17
17
} ;
18
18
@@ -47,10 +47,10 @@ impl WaylandDisplay {
47
47
#[ doc( alias = "get_wl_display" ) ]
48
48
#[ cfg( any( feature = "wayland_crate" , feature = "dox" ) ) ]
49
49
#[ 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 {
51
51
unsafe {
52
52
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 )
54
54
}
55
55
}
56
56
}
You can’t perform that action at this time.
0 commit comments