From 676997e0af2327adc4ac44159f261ef430240a8f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 8 Apr 2020 15:48:09 -0300 Subject: [PATCH] clutter/click-action: Make sure to never schedule more than one timeout click_action_query_long_press() can potentially schedule more than one timeout, since it doesn't clear any already-existing timeout. Make sure to clear the long press timeout before scheduling a new one. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1188 --- clutter/clutter/clutter-click-action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c index 762fb2f9a..fc882bd6e 100644 --- a/clutter/clutter/clutter-click-action.c +++ b/clutter/clutter/clutter-click-action.c @@ -238,6 +238,7 @@ click_action_query_long_press (ClutterClickAction *action) if (result) { + g_clear_handle_id (&priv->long_press_id, g_source_remove); priv->long_press_id = clutter_threads_add_timeout (timeout, click_action_emit_long_press,