aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.rs b/src/window.rs
index 8126454d..342e9b7c 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -276,11 +276,13 @@ impl Window {
pub fn set_cursor_visible(&mut self, visible: bool) {
if visible != self.cursor_visible {
self.cursor_visible = visible;
- self.window.set_cursor_state(if visible {
+ if let Err(err) = self.window.set_cursor_state(if visible {
CursorState::Normal
} else {
CursorState::Hide
- }).unwrap();
+ }) {
+ warn!("Failed to set cursor visibility: {}", err);
+ }
}
}