fix lock screen for mac and linux

This commit is contained in:
rustdesk
2022-04-24 02:37:27 +08:00
parent 6bc0c3ce98
commit f42a77ad22
2 changed files with 35 additions and 4 deletions

View File

@@ -1071,8 +1071,7 @@ impl Connection {
}
log::info!("#{} Connection closed: {}", self.inner.id(), reason);
if lock && self.lock_after_session_end && self.keyboard {
crate::platform::lock_screen();
super::video_service::switch_to_primary();
lock_screen();
}
self.tx_to_cm.send(ipc::Data::Close).ok();
self.port_forward_socket.take();