update rdev, fix grab system utf8, fallback on linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-09-15 15:35:44 +08:00
1 parent bb8438c770
commit 7b37e5183c
9 files changed
+19 -7

No files matched your search

+3
View File
@@ -380,6 +380,9 @@ 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