mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
window-actor/x11: Use g_clear_signal_handler()
Also fixes type of handler ID. https://gitlab.gnome.org/GNOME/mutter/merge_requests/734
This commit is contained in:
parent
dcd0f4322a
commit
f059466337
@ -44,7 +44,7 @@ struct _MetaWindowActorX11
|
||||
guint send_frame_messages_timer;
|
||||
int64_t frame_drawn_time;
|
||||
|
||||
guint repaint_scheduled_id;
|
||||
gulong repaint_scheduled_id;
|
||||
|
||||
/* If set, the client needs to be sent a _NET_WM_FRAME_DRAWN
|
||||
* client message for one or more messages in ->frames */
|
||||
@ -500,11 +500,7 @@ meta_window_actor_x11_dispose (GObject *object)
|
||||
|
||||
surface_actor = meta_window_actor_get_surface (META_WINDOW_ACTOR (actor_x11));
|
||||
if (surface_actor)
|
||||
{
|
||||
g_signal_handler_disconnect (surface_actor,
|
||||
actor_x11->repaint_scheduled_id);
|
||||
actor_x11->repaint_scheduled_id = 0;
|
||||
}
|
||||
g_clear_signal_handler (&actor_x11->repaint_scheduled_id, surface_actor);
|
||||
|
||||
G_OBJECT_CLASS (meta_window_actor_x11_parent_class)->dispose (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user