Skip to content

Commit

Permalink
fix: prevent focus requests from being lost from windows on inactive …
Browse files Browse the repository at this point in the history
…workspaces (#797)
  • Loading branch information
DreamMaoMao authored Oct 21, 2024
1 parent 8eb71b8 commit 3e2f5f2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/wm/src/common/events/handle_window_focused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}
Expand Down

0 comments on commit 3e2f5f2

Please sign in to comment.