fix elevated process crash when remote insert lock screen
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
632f9e264c
commit
5685a8b546
@ -1193,7 +1193,9 @@ fn is_function_key(ck: &EnumOrUnknown<ControlKey>) -> bool {
|
||||
});
|
||||
res = true;
|
||||
} else if ck.value() == ControlKey::LockScreen.value() {
|
||||
lock_screen_2();
|
||||
std::thread::spawn(|| {
|
||||
lock_screen_2();
|
||||
});
|
||||
res = true;
|
||||
}
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user