diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index 1bcdf5a..76005a8 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -1283,7 +1283,7 @@ unsafe impl raw_window_handle::HasRawDisplayHandle for Window { .as_ref() .c_ptr() as *mut _ as *mut c_void; - RawDisplayHandle::Wayland(handle) + raw_window_handle::RawDisplayHandle::Wayland(handle) } } diff --git a/src/os/posix/x11.rs b/src/os/posix/x11.rs index 49429cc..2c6b2bd 100644 --- a/src/os/posix/x11.rs +++ b/src/os/posix/x11.rs @@ -338,12 +338,12 @@ unsafe impl raw_window_handle::HasRawWindowHandle for Window { } } -unsafe impl HasRawDisplayHandle for Window { +unsafe impl raw_window_handle::HasRawDisplayHandle for Window { fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle { let mut handle = raw_window_handle::XlibDisplayHandle::empty(); handle.display = self.d.display as *mut core::ffi::c_void; - RawDisplayHandle::Xlib(handle) + raw_window_handle::RawDisplayHandle::Xlib(handle) } }