From 7ffe11b00075858c40dcca8c1e2a0fecd05d6704 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 17 Sep 2023 09:17:51 +0800 Subject: [PATCH] fix, macos as the controlled side, crash on disconnect Signed-off-by: fufesou --- Cargo.lock | 2 +- src/server/input_service.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0655e5e4d..3a8adbda2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4881,7 +4881,7 @@ dependencies = [ [[package]] name = "rdev" version = "0.5.0-2" -source = "git+https://github.com/fufesou/rdev#bec664ee8743ade8d2fdd099b114c9eeacd9cfba" +source = "git+https://github.com/fufesou/rdev#2e8221d653f4995c831ad52966e79a514516b1fa" dependencies = [ "cocoa", "core-foundation", diff --git a/src/server/input_service.rs b/src/server/input_service.rs index fd3a7cd24..b721149e9 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -380,9 +380,6 @@ pub fn try_stop_record_cursor_pos() { return; } RECORD_CURSOR_POS_RUNNING.store(false, Ordering::SeqCst); - - #[cfg(any(target_os = "windows", target_os = "macos"))] - let _r = rdev::exit_grab(); } // mac key input must be run in main thread, otherwise crash on >= osx 10.15