[gtk+/gtk-3-22] gtkgesture: Do not ignore events from other GdkWindows than the widget's
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gtkgesture: Do not ignore events from other GdkWindows than the widget's
- Date: Wed, 26 Jul 2017 10:56:33 +0000 (UTC)
commit 54c26e0983b9300d3bc66adf05cf668e7a1bfe86
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 26 19:20:20 2017 +0200
gtkgesture: Do not ignore events from other GdkWindows than the widget's
There's GDK grab situations (eg. pointer motion outside the grab window
in combination with a GTK+ grab) where a gesture may receive events from
windows that are not the widget's.
The _update_widget_coordinates() still does work for those situations, so
just let these events go through instead of ignoring them.
https://bugzilla.gnome.org/show_bug.cgi?id=782870
gtk/gtkgesture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 979e0e8..f8656e5 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -554,7 +554,7 @@ _gtk_gesture_update_point (GtkGesture *gesture,
widget_window = _find_widget_window (gesture, event->any.window);
if (!widget_window)
- return FALSE;
+ widget_window = event->any.window;
touchpad = EVENT_IS_TOUCHPAD_GESTURE (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]