Skip to content

Commit

Permalink
fix: lost focus request for window in inactive workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamMaoMao committed Oct 18, 2024
1 parent 8eb71b8 commit c1b0f83
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 c1b0f83

Please sign in to comment.