wayland/activation: Activate existing window with activations only

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3798>
This commit is contained in:
Sebastian Wick 2024-06-10 13:04:03 +02:00 committed by Marge Bot
parent b9ba34ac6f
commit 750459ddfe

View File

@ -384,10 +384,17 @@ complete_pending_activate (MetaWindow *window,
{
g_autofree char *token_str = NULL;
if (!window)
return;
g_signal_handlers_disconnect_by_func (window, complete_pending_activate,
activation);
g_hash_table_steal_extended (activation->pending_activations, window,
NULL, (gpointer *) &token_str);
if (!g_hash_table_steal_extended (activation->pending_activations,
window,
NULL,
(gpointer *) &token_str))
return;
maybe_activate (activation, window, token_str);
}