wayland/activation: Activate existing window with activations only
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3798>
This commit is contained in:

committed by
Marge Bot

parent
b9ba34ac6f
commit
750459ddfe
@ -384,10 +384,17 @@ complete_pending_activate (MetaWindow *window,
|
|||||||
{
|
{
|
||||||
g_autofree char *token_str = NULL;
|
g_autofree char *token_str = NULL;
|
||||||
|
|
||||||
|
if (!window)
|
||||||
|
return;
|
||||||
|
|
||||||
g_signal_handlers_disconnect_by_func (window, complete_pending_activate,
|
g_signal_handlers_disconnect_by_func (window, complete_pending_activate,
|
||||||
activation);
|
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);
|
maybe_activate (activation, window, token_str);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user