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:
@ -1296,9 +1296,7 @@ meta_window_unmanage (MetaWindow *window,
|
||||
meta_topic (META_DEBUG_FOCUS,
|
||||
"Focusing default window since we're unmanaging %s\n",
|
||||
window->desc);
|
||||
meta_workspace_focus_default_window (window->screen->active_workspace,
|
||||
window,
|
||||
timestamp);
|
||||
meta_workspace_focus_default_window (window->screen->active_workspace, NULL, timestamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user