stack: Never focus unmanaging windows

We can enter weird states where get_default_window is called during
window unmanagement, before the window has been fully removed from
the stack. Make sure these windows are *never* returned from
get_default_window, as focusing them can cause an assertion fail,
or worse.
This commit is contained in:
Jasper St. Pierre
2014-09-04 13:53:06 -07:00
parent 3f1f1645c7
commit b3b9d9e161
2 changed files with 4 additions and 3 deletions

View File

@ -1730,6 +1730,9 @@ get_default_focus_window (MetaStack *stack,
if (window->minimized)
continue;
if (window->unmanaging)
continue;
if (!(window->input || window->take_focus))
continue;