From cc0c335e1e8b9dbc77a5c8d1275dca62d5307dc7 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Sun, 11 Dec 2022 23:43:47 +0800 Subject: [PATCH] fix: rdev compilation --- src/ui_session_interface.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs index 6b635436d..7d88ce22a 100644 --- a/src/ui_session_interface.rs +++ b/src/ui_session_interface.rs @@ -822,9 +822,9 @@ impl Session { #[cfg(target_os = "linux")] pub fn grab_hotkeys(&self, _grab: bool) { if _grab { - rdev::enable_grab().ok(); + rdev::enable_grab(); } else { - rdev::disable_grab().ok(); + rdev::disable_grab(); } } @@ -1342,7 +1342,7 @@ impl Session { } _ => Some(event), }; - rdev::start_grab_listen(func) + rdev::start_grab_listen(func); } #[cfg(any(target_os = "windows", target_os = "macos"))] std::thread::spawn(move || { @@ -1610,7 +1610,7 @@ pub fn global_grab_keyboard() { } _ => Some(event), }; - rdev::start_grab_listen(func) + rdev::start_grab_listen(func); } #[cfg(any(target_os = "windows", target_os = "macos"))]