diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 15:26:36 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 15:26:36 +0500 |
commit | a651a0ce6977e9235fcc510b60ea6677c443ea48 (patch) | |
tree | 7922dfe06058dc8e9aba83d5784cdd97a198841f /gtk/gtkgestureclick.c | |
parent | 74a7f73239af76d06015d166fc51894059bfb24e (diff) | |
download | gtk+-a651a0ce6977e9235fcc510b60ea6677c443ea48.tar.gz |
gestureclick: Only emit release for the same sequence
Avoid spurious releases when touching the same widget with another finger.
Diffstat (limited to 'gtk/gtkgestureclick.c')
-rw-r--r-- | gtk/gtkgestureclick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkgestureclick.c b/gtk/gtkgestureclick.c index 98e8b7dd08..1af276bd15 100644 --- a/gtk/gtkgestureclick.c +++ b/gtk/gtkgestureclick.c @@ -272,7 +272,7 @@ gtk_gesture_click_end (GtkGesture *gesture, interpreted = gtk_gesture_get_point (gesture, current, &x, &y); state = gtk_gesture_get_sequence_state (gesture, current); - if (state != GTK_EVENT_SEQUENCE_DENIED && interpreted) + if (current == sequence && state != GTK_EVENT_SEQUENCE_DENIED && interpreted) g_signal_emit (gesture, signals[RELEASED], 0, priv->n_release, x, y); priv->n_release = 0; |