gtkwidget: Lookup the event target when cancelling GdkEventSequences

We were getting the toplevel most often here, so the gestures weren't
properly cleaned up.
This commit is contained in:
Carlos Garnacho 2017-05-25 01:59:40 +02:00
parent 0d7fe2ec09
commit 690eb8ede6

View File

@ -15104,7 +15104,7 @@ event_controller_sequence_state_changed (GtkGesture *gesture,
if (!event)
return;
event_widget = gtk_get_event_widget ((GdkEvent *) event);
event_widget = gtk_get_event_target ((GdkEvent *) event);
cancel_event_sequence_on_hierarchy (widget, event_widget, sequence);
}