From 39e84a5eb4a144d192aca3d2a5a7ad5e3c5b5b55 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 21 Oct 2024 16:42:14 -0400 Subject: [PATCH] fix: log warning instead of panicing for current_monitor --- winit/src/platform_specific/wayland/winit_window.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/winit/src/platform_specific/wayland/winit_window.rs b/winit/src/platform_specific/wayland/winit_window.rs index eb7fc9dc77..0ca4ceeb57 100644 --- a/winit/src/platform_specific/wayland/winit_window.rs +++ b/winit/src/platform_specific/wayland/winit_window.rs @@ -224,17 +224,21 @@ impl winit::window::Window for SctkWinitWindow { } fn current_monitor(&self) -> Option { - todo!() + tracing::warn!( + "current_monitor is not implemented for wayland windows." + ); + None } fn available_monitors( &self, ) -> Box> { - todo!() + Box::new(None.into_iter()) } fn has_focus(&self) -> bool { - todo!() + tracing::warn!("has_focus is not implemented for wayland windows."); + false } fn set_ime_cursor_area(