From baf8d2511d9fd1857aaeb253cdb03b98f7983aa8 Mon Sep 17 00:00:00 2001 From: dignow Date: Sun, 6 Aug 2023 17:12:53 +0800 Subject: [PATCH] fix, separate window, keyboard input Signed-off-by: dignow --- src/flutter_ffi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index e4ce7da46..74806915f 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -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();