diff --git a/src/platform/unix.rs b/src/platform/unix.rs index 79a78d848..e68b0e760 100644 --- a/src/platform/unix.rs +++ b/src/platform/unix.rs @@ -160,8 +160,8 @@ impl EventLoopExtUnix for EventLoop { #[inline] fn get_wayland_display(&self) -> Option<*mut raw::c_void> { - match self.events_loop { - LinuxEventsLoop::Wayland(ref e) => Some(e.get_display().c_ptr() as *mut _), + match self.event_loop { + LinuxEventLoop::Wayland(ref e) => Some(e.get_display().get_display_ptr() as *mut _), _ => None } }