mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
212283c13b
commit
200fc76f14
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user