[gtk+] wayland: Propagate slider/rotation axes from tools to devices



commit 057ae4ace00dd0213e9e6e9808ebbc2bc2ed655f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 8 17:25:04 2016 +0200

    wayland: Propagate slider/rotation axes from tools to devices

 gdk/wayland/gdkdevice-wayland.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 15ab038..3ba1f4d 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2893,6 +2893,12 @@ tablet_tool_handle_capability (void                      *data,
     case ZWP_TABLET_TOOL_V1_CAPABILITY_DISTANCE:
       tool->axes |= GDK_AXIS_FLAG_DISTANCE;
       break;
+    case ZWP_TABLET_TOOL_V1_CAPABILITY_ROTATION:
+      tool->axes |= GDK_AXIS_FLAG_ROTATION;
+      break;
+    case ZWP_TABLET_TOOL_V1_CAPABILITY_SLIDER:
+      tool->axes |= GDK_AXIS_FLAG_SLIDER;
+      break;
     }
 }
 


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