From 122d3699bcfd26fb90a88e7a282fd73e4da093b8 Mon Sep 17 00:00:00 2001 From: Julius Lehmann Date: Fri, 23 Aug 2019 11:52:11 +0200 Subject: [PATCH] Add pressure support --- sway/input/cursor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/input/cursor.c b/sway/input/cursor.c index c6a332b88..e7fa1855d 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -456,6 +456,9 @@ static void handle_tool_axis(struct wl_listener *listener, void *data) { if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_Y)) { y = event->y; } + if (event->updated_axes & WLR_TABLET_TOOL_AXIS_PRESSURE) { + wlr_tablet_v2_tablet_tool_notify_pressure(event->tool->tablet_v2_tool, event->pressure); + } struct input_config *ic = input_device_get_config(input_device); if (ic != NULL && ic->mapped_from_region != NULL) {