wayland: Propagate slider/rotation axes from tools to devices

This commit is contained in:
Carlos Garnacho 2016-04-08 17:25:04 +02:00
parent b3ca11a6cb
commit 057ae4ace0

View 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;
}
}