fix: log warning instead of panicing for current_monitor
This commit is contained in:
parent
dcdc6c1410
commit
1349ef96b7
1 changed files with 7 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue