Skip to content

Commit

Permalink
input/cursor: default tablet lens tool to relative motion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Xyene committed Jun 19, 2020
1 parent b3f0859 commit 904f5b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/input/cursor.c
Expand Up @@ -567,6 +567,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;
Expand Down

0 comments on commit 904f5b9

Please sign in to comment.