mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 08:37:15 +00:00
fix, remove unused capturer when switching display
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
52a4d41c6f
commit
58d073b516
6 files changed
+98
-42
No files matched your search
+1
-7
@@ -429,13 +429,7 @@ pub fn session_ctrl_alt_del(session_id: SessionID) {
|
||||
}
|
||||
|
||||
pub fn session_switch_display(session_id: SessionID, value: Vec<i32>) {
|
||||
if let Some(session) = sessions::get_session_by_session_id(&session_id) {
|
||||
if value.len() == 1 {
|
||||
session.switch_display(value[0]);
|
||||
} else {
|
||||
session.capture_displays(vec![], vec![], value);
|
||||
}
|
||||
}
|
||||
sessions::session_switch_display(session_id, value);
|
||||
}
|
||||
|
||||
pub fn session_handle_flutter_key_event(
|
||||
|
||||
Reference in new issue
Block a user