wayland: Propagate slider/rotation axes from tools to devices
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Apr 2016 15:25:04 +0000 (17:25 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Apr 2016 15:34:29 +0000 (17:34 +0200)
gdk/wayland/gdkdevice-wayland.c

index 15ab038a3fc8e11b9947186e092bb2787bd04c43..3ba1f4d793853ce3bdb633baf0ffdf6011b4ee7c 100644 (file)
@@ -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;
     }
 }