From 994c94c25b1a02d8a9df2360f62e346f59c6170e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 6 May 2014 17:27:17 +0200 Subject: [PATCH] dnd: Check on the right gesture sequence when starting the drag op --- gtk/gtkdnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index f9452eda96..49e93c5dad 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -3923,8 +3923,8 @@ gtk_drag_source_event_cb (GtkWidget *widget, const GdkEvent *event; guint button; - sequence = gtk_gesture_get_last_updated_sequence (site->drag_gesture); - event = gtk_gesture_get_last_event (GTK_GESTURE (site->drag_gesture), sequence); + sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (site->drag_gesture)); + event = gtk_gesture_get_last_event (site->drag_gesture, sequence); button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (site->drag_gesture)); gtk_event_controller_reset (GTK_EVENT_CONTROLLER (site->drag_gesture));