This commit is contained in:
Alex Janka 2023-03-06 12:29:50 +11:00
parent 467ad2666f
commit d5095f9c3f
2 changed files with 3 additions and 3 deletions

View file

@ -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)
}
}

View file

@ -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)
}
}