From 36711b66910eab1d845cc8d1aad7d1aeee18e0f4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 5 Aug 2020 22:56:05 +0200 Subject: [PATCH] gtkbutton: Don't claim gesture till emission That means waiting till button release. --- gtk/gtkbutton.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 843c1f49a0..eac1499b0d 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -327,8 +327,6 @@ click_pressed_cb (GtkGestureClick *gesture, if (!priv->activate_timeout) priv->button_down = TRUE; - - gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); } static gboolean @@ -364,6 +362,7 @@ click_released_cb (GtkGestureClick *gesture, GtkButtonPrivate *priv = gtk_button_get_instance_private (button); GdkEventSequence *sequence; + gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); gtk_button_do_release (button, gtk_widget_is_sensitive (GTK_WIDGET (button)) && (priv->in_button ||