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.
This commit is contained in:
Tudor Brindus 2020-06-19 13:46:42 -04:00 committed by Simon Ser
parent 989123a2a5
commit 136add4e12
1 changed files with 1 additions and 0 deletions

View File

@ -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;