aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-28 11:04:40 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-28 11:04:40 -0400
commit324b9d910dc237151fd71c01bef015d0080be191 (patch)
tree22f412fd0aee7f41ffe5282d2834adb0f4aeb1fb /rootston/cursor.c
parenta35a5786b0e40cb1ffa87344d3cb21dff9fd99f4 (diff)
Remove width_mm from wlr_touch events
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index c1fd7d31..786dff0e 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -310,10 +310,8 @@ void roots_cursor_handle_touch_down(struct roots_cursor *cursor,
struct roots_desktop *desktop = cursor->seat->input->server->desktop;
struct wlr_surface *surface = NULL;
double lx, ly;
- bool result =
- wlr_cursor_absolute_to_layout_coords(cursor->cursor,
- event->device, event->x_mm, event->y_mm, event->width_mm,
- event->height_mm, &lx, &ly);
+ bool result = wlr_cursor_absolute_to_layout_coords(cursor->cursor,
+ event->device, event->x, event->y, &lx, &ly);
if (!result) {
return;
}
@@ -365,8 +363,7 @@ void roots_cursor_handle_touch_motion(struct roots_cursor *cursor,
double lx, ly;
bool result =
wlr_cursor_absolute_to_layout_coords(cursor->cursor,
- event->device, event->x_mm, event->y_mm, event->width_mm,
- event->height_mm, &lx, &ly);
+ event->device, event->x, event->y, &lx, &ly);
if (!result) {
return;
}