[gtk+/wip/carlosg/event-delivery: 103/104] gtkwidget: Lookup the event target when cancelling GdkEventSequences
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery: 103/104] gtkwidget: Lookup the event target when cancelling GdkEventSequences
- Date: Thu, 25 May 2017 14:48:46 +0000 (UTC)
commit 690eb8ede6bd07715630567a3cb36155bfcef716
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu May 25 01:59:40 2017 +0200
gtkwidget: Lookup the event target when cancelling GdkEventSequences
We were getting the toplevel most often here, so the gestures weren't
properly cleaned up.
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 70212da..527a34d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]