[gtk+] gtkwidget: Lookup target widget when propagating emulated pressed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkwidget: Lookup target widget when propagating emulated pressed
- Date: Thu, 12 Oct 2017 12:50:28 +0000 (UTC)
commit 564ae6967da10f3784f2b60bdcfad43aa413298d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Oct 12 14:18:12 2017 +0200
gtkwidget: Lookup target widget when propagating emulated pressed
After a gesture first claims, and later rejects a touch sequence,
a press event will be propagated further along. However propagation
got messed up since we only emitted as far as the toplevel.
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 51e39c3..63dd522 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3475,7 +3475,7 @@ _gtk_widget_emulate_press (GtkWidget *widget,
GtkWidget *event_widget, *next_child, *parent;
GdkEvent *press;
- event_widget = gtk_get_event_widget ((GdkEvent *) event);
+ event_widget = gtk_get_event_target ((GdkEvent *) event);
if (event_widget == widget)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]