mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-30 16:41:00 +03:00
fix cursor active in portable service, update peer input cursor time
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -671,6 +671,11 @@ fn fix_modifiers(modifiers: &[EnumOrUnknown<ControlKey>], en: &mut Enigo, ck: i3
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn update_latest_input_cursor_time() {
|
||||
LATEST_PEER_INPUT_CURSOR.lock().unwrap().time = get_time();
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_last_input_cursor_pos() -> (i32, i32) {
|
||||
let lock = LATEST_PEER_INPUT_CURSOR.lock().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user