window-x11: Don't double-check for unmanaging windows

When looking for the best fallback focus window, we ignore it if it is in the
unmanaging state, but meta_stack_get_default_focus_window() does this is check
for us already.

So, ignore the redundant test.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/669


(cherry picked from commit 9aee47daa9)
This commit is contained in:
Marco Trevisan (Treviño) 2019-07-01 08:38:02 +00:00
parent 4349e682f8
commit bee55a27f4

View File

@ -865,9 +865,6 @@ meta_window_x11_focus (MetaWindow *window,
if (!focus_window)
break;
if (focus_window->unmanaging)
continue;
if (focus_window->input)
break;