Skip to content

Commit

Permalink
Relax the conditions for focus prevention
Browse files Browse the repository at this point in the history
Now applies to windows in the application layer that don't have a
parent.
  • Loading branch information
tarek-y-ismail committed Dec 5, 2024
1 parent 2d2107d commit 2f48609
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/miral/minimal_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ void miral::MinimalWindowManager::advise_new_window(miral::WindowInfo const& win
// "application" layer that don't have a parent.
auto in_background =
(self->focus_stealing == FocusStealing::prevent) && tools.active_window() &&
(window_info.type() == mir_window_type_normal || window_info.type() == mir_window_type_freestyle) &&
window_info.depth_layer() == mir_depth_layer_application && !window_info.parent();

self->application_selector.advise_new_window(window_info, in_background);
Expand Down

0 comments on commit 2f48609

Please sign in to comment.