From 2118b6dd7d44372e4867f0111636c6c98bfe4d66 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 22 Jan 2024 23:30:57 -0800 Subject: [PATCH] Fix. sciter, switch display. Close unused display services after switching. (#6962) Signed-off-by: fufesou --- src/ui_session_interface.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs index f8ed9b6a3c4e..069fd319e3b5 100644 --- a/src/ui_session_interface.rs +++ b/src/ui_session_interface.rs @@ -723,6 +723,11 @@ impl Session { let mut msg_out = Message::new(); msg_out.set_misc(misc); self.send(Data::Message(msg_out)); + + #[cfg(not(feature = "flutter"))] + { + self.capture_displays(vec![], vec![], vec![display]); + } } #[cfg(not(any(target_os = "android", target_os = "ios")))]