Commit 58d2a674 authored by Marco Trevisan's avatar Marco Trevisan 🎺

window: Return focusable ability looking at properties only

As per commit 43633d6b, we mark an unmanaging window as not focusable, while
this is true, it might cause not resetting the current focused window when
unmanaging it causing a crash.

Also this wouldn't allow to check if a window can be focused when unmanaging it,
so let's revert the previous behavior.

Fixes: GNOME/mutter#462
parent 9e2ed410
Pipeline #59148 passed with stages
in 6 minutes and 21 seconds
......@@ -1224,6 +1224,9 @@ get_default_focus_window (MetaStack *stack,
if (window->unmaps_pending > 0)
continue;
if (window->unmanaging)
continue;
if (!meta_window_is_focusable (window))
continue;
......
......@@ -8529,9 +8529,6 @@ meta_window_shortcuts_inhibited (MetaWindow *window,
gboolean
meta_window_is_focusable (MetaWindow *window)
{
if (window->unmanaging)
return FALSE;
return META_WINDOW_GET_CLASS (window)->is_focusable (window);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment