aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-28 11:40:35 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-28 12:05:37 -0400
commitac219cbda6dc3122fcc7f1bfa89b7e8fbb03b8ce (patch)
treea67f7b0fb4f8a2b4abf3b05c944486f154c38dbc /rootston
parent324b9d910dc237151fd71c01bef015d0080be191 (diff)
Remove width_mm from tablet events
Diffstat (limited to 'rootston')
-rw-r--r--rootston/cursor.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 786dff0e..a5953e4a 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -392,15 +392,13 @@ void roots_cursor_handle_tool_axis(struct roots_cursor *cursor,
if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_X) &&
(event->updated_axes & WLR_TABLET_TOOL_AXIS_Y)) {
wlr_cursor_warp_absolute(cursor->cursor, event->device,
- event->x_mm / event->width_mm, event->y_mm / event->height_mm);
+ event->x, event->y);
roots_cursor_update_position(cursor, event->time_msec);
} else if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_X)) {
- wlr_cursor_warp_absolute(cursor->cursor, event->device,
- event->x_mm / event->width_mm, -1);
+ wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, -1);
roots_cursor_update_position(cursor, event->time_msec);
} else if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_Y)) {
- wlr_cursor_warp_absolute(cursor->cursor, event->device,
- -1, event->y_mm / event->height_mm);
+ wlr_cursor_warp_absolute(cursor->cursor, event->device, -1, event->y);
roots_cursor_update_position(cursor, event->time_msec);
}
}