From 200fc76f14824f487ca1e739973c381ef38828b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 6 Dec 2023 15:41:43 +0100 Subject: [PATCH] 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: a3c62bf8aa7a ("wayland/idle-inhibit: Add state tracking to fix races") Part-of: --- src/wayland/meta-wayland-idle-inhibit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-idle-inhibit.c b/src/wayland/meta-wayland-idle-inhibit.c index b2931c8f9..49f09b8c2 100644 --- a/src/wayland/meta-wayland-idle-inhibit.c +++ b/src/wayland/meta-wayland-idle-inhibit.c @@ -308,9 +308,9 @@ on_actor_changed (MetaWaylandSurface *surface, MetaWaylandIdleInhibitor *inhibitor) { g_clear_signal_handler (&inhibitor->is_obscured_changed_handler, - inhibitor->surface); + inhibitor->actor); g_clear_signal_handler (&inhibitor->actor_destroyed_handler_id, - inhibitor->surface); + inhibitor->actor); attach_actor (inhibitor); }