diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-06-19 13:46:42 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-06-19 13:46:42 -0400 |
| commit | aa677fb1603780a48ed06f467230262058a677b3 (patch) | |
| tree | ec600cbaf9fc82fceb011fc29a7c0550cf327131 | |
| parent | eae26ec3fb5bf2327beabc45c237d889f01761dc (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.
| -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; |
