window: Warn if try to focus unmanaging windows

https://gitlab.gnome.org/GNOME/mutter/merge_requests/307
This commit is contained in:
Marco Trevisan (Treviño) 2019-02-14 13:57:22 +01:00 committed by Jonas Ådahl
parent f71151a5dd
commit e14613e74e

View File

@ -8518,6 +8518,8 @@ meta_window_shortcuts_inhibited (MetaWindow *window,
gboolean gboolean
meta_window_is_focusable (MetaWindow *window) meta_window_is_focusable (MetaWindow *window)
{ {
g_return_val_if_fail (!window->unmanaging, FALSE);
return META_WINDOW_GET_CLASS (window)->is_focusable (window); return META_WINDOW_GET_CLASS (window)->is_focusable (window);
} }