diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-06-19 13:46:42 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-10-12 15:01:37 +0200 |
commit | 136add4e1208fe631dd8f8590a69ef9b959cfe34 (patch) | |
tree | ec600cbaf9fc82fceb011fc29a7c0550cf327131 /sway | |
parent | 989123a2a5933367e5c7c39c3793f4814e026bf1 (diff) |
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.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/cursor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index f5c2bd17..61d75b8a 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -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; |