diff --git a/src/platform_impl/linux/window.rs b/src/platform_impl/linux/window.rs index c3ac9d265..80878dfe0 100644 --- a/src/platform_impl/linux/window.rs +++ b/src/platform_impl/linux/window.rs @@ -761,7 +761,7 @@ impl Window { #[inline] pub fn cursor_position(&self) -> Result, ExternalError> { - util::cursor_position(self.window.display().backend().is_wayland()) + util::cursor_position(self.is_wayland()) } pub fn current_monitor(&self) -> Option {