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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue