diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-08-26 10:52:45 -0400 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-09-19 18:39:03 +0200 |
commit | 1a8f0686ca25ffc079f0b9c9e3d0398fdf73a257 (patch) | |
tree | bd8da393e5b21a4a22677de1845248ba53e3307c /gtk/gtkgesturesingle.c | |
parent | 17832f961776b8b7aa79fc76bb0397857d9b81ab (diff) | |
download | gtk+-1a8f0686ca25ffc079f0b9c9e3d0398fdf73a257.tar.gz |
gesture single: Use GdkEvent API
Diffstat (limited to 'gtk/gtkgesturesingle.c')
-rw-r--r-- | gtk/gtkgesturesingle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkgesturesingle.c b/gtk/gtkgesturesingle.c index edf13c7462..d0a624e382 100644 --- a/gtk/gtkgesturesingle.c +++ b/gtk/gtkgesturesingle.c @@ -140,6 +140,7 @@ gtk_gesture_single_handle_event (GtkEventController *controller, guint button = 0, state, i; gboolean retval, test_touchscreen = FALSE; GdkEventType event_type; + gboolean emulating; source_device = gdk_event_get_source_device (event); @@ -159,7 +160,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller, case GDK_TOUCH_BEGIN: case GDK_TOUCH_END: case GDK_TOUCH_UPDATE: - if (priv->exclusive && !event->touch.emulating_pointer) + gdk_event_get_touch_emulating_pointer (event, &emulating); + if (priv->exclusive && !emulating) return FALSE; sequence = gdk_event_get_event_sequence (event); |