fix: log warning instead of panicing for current_monitor

This commit is contained in:
Ashley Wulber 2024-10-21 16:42:14 -04:00
parent dcdc6c1410
commit 1349ef96b7
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -225,17 +225,21 @@ impl winit::window::Window for SctkWinitWindow {
}
fn current_monitor(&self) -> Option<winit::monitor::MonitorHandle> {
todo!()
tracing::warn!(
"current_monitor is not implemented for wayland windows."
);
None
}
fn available_monitors(
&self,
) -> Box<dyn Iterator<Item = winit::monitor::MonitorHandle>> {
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(