From 136add4e1208fe631dd8f8590a69ef9b959cfe34 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Fri, 19 Jun 2020 13:46:42 -0400 Subject: 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. --- sway/input/cursor.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3