Merge pull request #5267 from dignow/fix/separate_windows_keyboard

fix, separate window, keyboard input
This commit is contained in:
RustDesk 2023-08-06 17:19:16 +08:00 committed by GitHub
commit 221fe6223a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,6 +389,7 @@ pub fn session_enter_or_leave(_session_id: SessionID, _enter: bool) -> SyncRetur
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if let Some(session) = SESSIONS.read().unwrap().get(&_session_id) {
if _enter {
set_cur_session_id(_session_id);
session.enter();
} else {
session.leave();