Skip to content

Commit 2f48609

Browse files
Relax the conditions for focus prevention
Now applies to windows in the application layer that don't have a parent.
1 parent 2d2107d commit 2f48609

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/miral/minimal_window_manager.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ void miral::MinimalWindowManager::advise_new_window(miral::WindowInfo const& win
308308
// "application" layer that don't have a parent.
309309
auto in_background =
310310
(self->focus_stealing == FocusStealing::prevent) && tools.active_window() &&
311-
(window_info.type() == mir_window_type_normal || window_info.type() == mir_window_type_freestyle) &&
312311
window_info.depth_layer() == mir_depth_layer_application && !window_info.parent();
313312

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

0 commit comments

Comments
 (0)