Skip to content

Commit 1d674a6

Browse files
Remove decoration and parent checks from should_prevent_focus.
1 parent 4d3d484 commit 1d674a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/miral/minimal_window_manager.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,8 @@ void miral::MinimalWindowManager::Impl::apply_resize_by(Displacement movement)
643643

644644
bool miral::MinimalWindowManager::Impl::should_prevent_focus(miral::WindowInfo const& info)
645645
{
646-
auto const without_parent = !info.parent();
647-
auto const decoration_surface = info.type() == mir_window_type_decoration;
648646
return (focus_stealing == FocusStealing::prevent) && tools.active_window() &&
649-
(without_parent || decoration_surface) && info.depth_layer() == mir_depth_layer_application &&
647+
info.depth_layer() == mir_depth_layer_application &&
650648
tools.active_window().application() != info.window().application();
651649
}
652650

0 commit comments

Comments
 (0)