mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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:
parent
0d7fe2ec09
commit
690eb8ede6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user