[gtk+/wip/wayland-tablet-v2: 55/66] gdk: Address pad events similarly to keyboard events



commit ccfde90a162d89091c611368ee844e9f583f8e52
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 4 19:10:21 2016 +0200

    gdk: Address pad events similarly to keyboard events
    
    We want the same treatment for those, the event will be emitted on the
    toplevel, which will then decide what to do with the event.
    
    It just doesn't make much sense to propagate those up/down the hierarchy,
    when we want specifically one action being triggered from those.

 gdk/gdkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4a49c01..be40ec5 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9860,7 +9860,8 @@ _gdk_windowing_got_event (GdkDisplay *display,
 
   if (device)
     {
-      if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
+      if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD &&
+          gdk_device_get_source (device) != GDK_SOURCE_TABLET_PAD)
         {
           pointer_info = _gdk_display_get_pointer_info (display, device);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]