fix, macos as the controlled side, crash on disconnect
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
eb5ea17610
commit
7ffe11b000
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -4881,7 +4881,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "rdev"
|
name = "rdev"
|
||||||
version = "0.5.0-2"
|
version = "0.5.0-2"
|
||||||
source = "git+https://github.com/fufesou/rdev#bec664ee8743ade8d2fdd099b114c9eeacd9cfba"
|
source = "git+https://github.com/fufesou/rdev#2e8221d653f4995c831ad52966e79a514516b1fa"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cocoa",
|
"cocoa",
|
||||||
"core-foundation",
|
"core-foundation",
|
||||||
|
@ -380,9 +380,6 @@ pub fn try_stop_record_cursor_pos() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
RECORD_CURSOR_POS_RUNNING.store(false, Ordering::SeqCst);
|
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
|
// mac key input must be run in main thread, otherwise crash on >= osx 10.15
|
||||||
|
Loading…
x
Reference in New Issue
Block a user