wayland/idle-inhibit: Pass actor instance in on_actor_changed

This matches the other g_signal_connect / g_clear_signal_handler calls
for these signal handlers.

Fixes: a3c62bf8aa ("wayland/idle-inhibit: Add state tracking to fix races")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3444>
This commit is contained in:
Michel Dänzer 2023-12-06 15:41:43 +01:00 committed by Marge Bot
parent 212283c13b
commit 200fc76f14

View File

@ -308,9 +308,9 @@ on_actor_changed (MetaWaylandSurface *surface,
MetaWaylandIdleInhibitor *inhibitor) MetaWaylandIdleInhibitor *inhibitor)
{ {
g_clear_signal_handler (&inhibitor->is_obscured_changed_handler, g_clear_signal_handler (&inhibitor->is_obscured_changed_handler,
inhibitor->surface); inhibitor->actor);
g_clear_signal_handler (&inhibitor->actor_destroyed_handler_id, g_clear_signal_handler (&inhibitor->actor_destroyed_handler_id,
inhibitor->surface); inhibitor->actor);
attach_actor (inhibitor); attach_actor (inhibitor);
} }