aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-19 13:46:42 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-10-12 15:01:37 +0200
commit136add4e1208fe631dd8f8590a69ef9b959cfe34 (patch)
treeec600cbaf9fc82fceb011fc29a7c0550cf327131 /sway/input
parentAdd support for workspace_min_width bar option. (diff)
downloadsway-136add4e1208fe631dd8f8590a69ef9b959cfe34.tar.gz
sway-136add4e1208fe631dd8f8590a69ef9b959cfe34.tar.zst
sway-136add4e1208fe631dd8f8590a69ef9b959cfe34.zip
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/input')
-rw-r--r--sway/input/cursor.c1
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,
568 } 568 }
569 569
570 switch (tool->tablet_v2_tool->wlr_tool->type) { 570 switch (tool->tablet_v2_tool->wlr_tool->type) {
571 case WLR_TABLET_TOOL_TYPE_LENS:
571 case WLR_TABLET_TOOL_TYPE_MOUSE: 572 case WLR_TABLET_TOOL_TYPE_MOUSE:
572 wlr_cursor_move(cursor->cursor, input_device->wlr_device, dx, dy); 573 wlr_cursor_move(cursor->cursor, input_device->wlr_device, dx, dy);
573 break; 574 break;