mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
dnd: Check on the right gesture sequence when starting the drag op
This commit is contained in:
parent
5369c77029
commit
994c94c25b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user