summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkwidget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 80945246b0..7ce8f839f2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -17593,8 +17593,7 @@ _gtk_widget_consumes_motion (GtkWidget *widget,
if ((!GTK_IS_GESTURE_SINGLE (data->controller) ||
GTK_IS_GESTURE_DRAG (data->controller) ||
GTK_IS_GESTURE_SWIPE (data->controller)) &&
- gtk_gesture_get_sequence_state (GTK_GESTURE (data->controller),
- sequence) != GTK_EVENT_SEQUENCE_DENIED)
+ gtk_gesture_handles_sequence (GTK_GESTURE (data->controller), sequence))
return TRUE;
}