We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
should_prevent_focus
1 parent 4d3d484 commit 1d674a6Copy full SHA for 1d674a6
src/miral/minimal_window_manager.cpp
@@ -643,10 +643,8 @@ void miral::MinimalWindowManager::Impl::apply_resize_by(Displacement movement)
643
644
bool miral::MinimalWindowManager::Impl::should_prevent_focus(miral::WindowInfo const& info)
645
{
646
- auto const without_parent = !info.parent();
647
- auto const decoration_surface = info.type() == mir_window_type_decoration;
648
return (focus_stealing == FocusStealing::prevent) && tools.active_window() &&
649
- (without_parent || decoration_surface) && info.depth_layer() == mir_depth_layer_application &&
+ info.depth_layer() == mir_depth_layer_application &&
650
tools.active_window().application() != info.window().application();
651
}
652
0 commit comments