Commit a6fc656e authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Georges Basile Stavracas Neto

window: Emit an error and return when trying to activate an unmanaged

If something (i.e. gnome-shell or an extension) tries to activate an unmanaged
window, we should warn about this and avoid to perform further actions as this
could lead to a crash of mutter, since the window has not valid flags (like
workspace) set anymore at this stage.

Fixes #580

parent a38bae25
Pipeline #86540 passed with stages
in 11 minutes and 44 seconds
......@@ -3679,6 +3679,13 @@ meta_window_activate_full (MetaWindow *window,
MetaWorkspaceManager *workspace_manager = window->display->workspace_manager;
gboolean allow_workspace_switch;
if (window->unmanaging)
g_warning ("Trying to activate unmanaged window '%s'", window->desc);
meta_topic (META_DEBUG_FOCUS,
"_NET_ACTIVE_WINDOW message sent for %s at time %u "
"by client type %u.\n",
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