sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 136add4e1208fe631dd8f8590a69ef9b959cfe34
parent 989123a2a5933367e5c7c39c3793f4814e026bf1
Author: Tudor Brindus <me@tbrindus.ca>
Date:   Fri, 19 Jun 2020 13:46:42 -0400

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:
Msway/input/cursor.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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;