aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-28 10:46:50 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-28 10:46:50 -0400
commita35a5786b0e40cb1ffa87344d3cb21dff9fd99f4 (patch)
tree727523fb9b341f608827a0b848ef4798d346d65b /examples/pointer.c
parent330ee081269790922a46091399b616b12ce14f51 (diff)
Remove width_mm from wlr_pointer events
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index 9794e6e5..12312092 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -154,8 +154,8 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener,
wl_container_of(listener, sample, cursor_motion_absolute);
struct wlr_event_pointer_motion_absolute *event = data;
- sample->cur_x = event->x_mm;
- sample->cur_y = event->y_mm;
+ sample->cur_x = event->x;
+ sample->cur_y = event->y;
wlr_cursor_warp_absolute(sample->cursor, event->device, sample->cur_x,
sample->cur_y);
@@ -252,7 +252,7 @@ static void handle_tablet_tool_axis(struct wl_listener *listener, void *data) {
if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_X) &&
(event->updated_axes & WLR_TABLET_TOOL_AXIS_Y)) {
wlr_cursor_warp_absolute(sample->cursor, event->device,
- event->x_mm / event->width_mm, event->y_mm / event->height_mm);
+ event->x_mm / event->width_mm, event->y_mm / event->height_mm);
}
}