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:
parent
b41d1437a7
commit
b9ba34ac6f
@ -378,8 +378,9 @@ maybe_activate (MetaWaylandActivation *activation,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
complete_pending_activate (MetaWaylandActivation *activation,
|
complete_pending_activate (MetaWindow *window,
|
||||||
MetaWindow *window)
|
GParamSpec *pspec,
|
||||||
|
MetaWaylandActivation *activation)
|
||||||
{
|
{
|
||||||
g_autofree char *token_str = NULL;
|
g_autofree char *token_str = NULL;
|
||||||
|
|
||||||
@ -409,12 +410,12 @@ activation_activate (struct wl_client *client,
|
|||||||
g_signal_handlers_disconnect_by_func (window,
|
g_signal_handlers_disconnect_by_func (window,
|
||||||
complete_pending_activate,
|
complete_pending_activate,
|
||||||
activation);
|
activation);
|
||||||
g_signal_connect_swapped (window, "notify::mapped",
|
g_signal_connect (window, "notify::mapped",
|
||||||
G_CALLBACK (complete_pending_activate),
|
G_CALLBACK (complete_pending_activate),
|
||||||
activation);
|
activation);
|
||||||
g_signal_connect_swapped (window, "unmanaged",
|
g_signal_connect (window, "unmanaged",
|
||||||
G_CALLBACK (complete_pending_activate),
|
G_CALLBACK (complete_pending_activate),
|
||||||
activation);
|
activation);
|
||||||
g_hash_table_insert (activation->pending_activations,
|
g_hash_table_insert (activation->pending_activations,
|
||||||
window, g_strdup (token_str));
|
window, g_strdup (token_str));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user