Skip to content

Commit

Permalink
fix: log warning instead of panicing for current_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Oct 21, 2024
1 parent 4dd4cfb commit 894faf6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions winit/src/platform_specific/wayland/winit_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,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(
Expand Down

0 comments on commit 894faf6

Please sign in to comment.