input/cursor: default tablet lens tool to relative motion

It is recommended that mouse and lens cursor tool default to relative
mode and all pen-like tools to absolute mode.

Refs
https://wayland.freedesktop.org/libinput/doc/1.11.3/tablet-support.html#tablet-relative-motion.
master
Tudor Brindus 5 years ago committed by Simon Ser
parent 989123a2a5
commit 136add4e12

@ -568,6 +568,7 @@ static void handle_tablet_tool_position(struct sway_cursor *cursor,
}
switch (tool->tablet_v2_tool->wlr_tool->type) {
case WLR_TABLET_TOOL_TYPE_LENS:
case WLR_TABLET_TOOL_TYPE_MOUSE:
wlr_cursor_move(cursor->cursor, input_device->wlr_device, dx, dy);
break;

Loading…
Cancel
Save