1
0
Fork 0

wayland/activation: Fix signal callback signature

Parameter notify signals have a GParamSpec as second parameter.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3523
Fixes: c166b3fc5 ("wayland/activation: Apply xdg-activation request when window gets mapped")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3798>
This commit is contained in:
Sebastian Wick 2024-06-10 12:59:13 +02:00 committed by Marge Bot
parent b41d1437a7
commit b9ba34ac6f

View file

@ -378,8 +378,9 @@ maybe_activate (MetaWaylandActivation *activation,
}
static void
complete_pending_activate (MetaWaylandActivation *activation,
MetaWindow *window)
complete_pending_activate (MetaWindow *window,
GParamSpec *pspec,
MetaWaylandActivation *activation)
{
g_autofree char *token_str = NULL;
@ -409,12 +410,12 @@ activation_activate (struct wl_client *client,
g_signal_handlers_disconnect_by_func (window,
complete_pending_activate,
activation);
g_signal_connect_swapped (window, "notify::mapped",
G_CALLBACK (complete_pending_activate),
activation);
g_signal_connect_swapped (window, "unmanaged",
G_CALLBACK (complete_pending_activate),
activation);
g_signal_connect (window, "notify::mapped",
G_CALLBACK (complete_pending_activate),
activation);
g_signal_connect (window, "unmanaged",
G_CALLBACK (complete_pending_activate),
activation);
g_hash_table_insert (activation->pending_activations,
window, g_strdup (token_str));
}