From 3e2f5f26d3bca01faf3427b18d886dcc7e1689b8 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <30348075+DreamMaoMao@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:20:54 +0800 Subject: [PATCH] fix: prevent focus requests from being lost from windows on inactive workspaces (#797) --- packages/wm/src/common/events/handle_window_focused.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/wm/src/common/events/handle_window_focused.rs b/packages/wm/src/common/events/handle_window_focused.rs index 57e7bf0f7..360b1721a 100644 --- a/packages/wm/src/common/events/handle_window_focused.rs +++ b/packages/wm/src/common/events/handle_window_focused.rs @@ -24,10 +24,8 @@ pub fn handle_window_focused( // Ignore the focus event if: // 1. Window is being hidden by the WM. // 2. Focus is already set to the WM's focused container. - // 3. Window is not actually the foreground window. if window.display_state() == DisplayState::Hiding || state.focused_container() == Some(window.clone().into()) - || Platform::foreground_window() != native_window { return Ok(()); }