aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-04-27 03:18:54 -0400
committerSimon Ser <contact@emersion.fr>2020-04-27 10:20:44 +0200
commit39af3535c3791ead9cf182ad67fec30f5259b1a3 (patch)
treeb40172abf9427f49fa1459248f0e884877b52c8e /backend
parent326c8bc818a483bad30f7c2233a8f9e36c73d2c6 (diff)
input/tablet: populate tool tip event position
This commit doesn't fix any issue that I'm aware of, since sway incidentally does not use these fields. Still, they exist, so they should probably be filled in to prevent fun surprises in the future.
Diffstat (limited to 'backend')
-rw-r--r--backend/libinput/tablet_tool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c
index 6ac10a87..9c0ef0cf 100644
--- a/backend/libinput/tablet_tool.c
+++ b/backend/libinput/tablet_tool.c
@@ -333,6 +333,9 @@ void handle_tablet_tool_tip(struct libinput_event *event,
wlr_event.tool = &tool->wlr_tool;
wlr_event.time_msec =
usec_to_msec(libinput_event_tablet_tool_get_time_usec(tevent));
+ wlr_event.x = libinput_event_tablet_tool_get_x_transformed(tevent, 1);
+ wlr_event.y = libinput_event_tablet_tool_get_y_transformed(tevent, 1);
+
switch (libinput_event_tablet_tool_get_tip_state(tevent)) {
case LIBINPUT_TABLET_TOOL_TIP_UP:
wlr_event.state = WLR_TABLET_TOOL_TIP_UP;