aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
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 /backend/libinput
parent330ee081269790922a46091399b616b12ce14f51 (diff)
Remove width_mm from wlr_pointer events
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/pointer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c
index 8a31d312..9ccda634 100644
--- a/backend/libinput/pointer.c
+++ b/backend/libinput/pointer.c
@@ -53,9 +53,8 @@ void handle_pointer_motion_abs(struct libinput_event *event,
wlr_event.device = wlr_dev;
wlr_event.time_msec =
usec_to_msec(libinput_event_pointer_get_time_usec(pevent));
- wlr_event.x_mm = libinput_event_pointer_get_absolute_x(pevent);
- wlr_event.y_mm = libinput_event_pointer_get_absolute_y(pevent);
- libinput_device_get_size(libinput_dev, &wlr_event.width_mm, &wlr_event.height_mm);
+ wlr_event.x = libinput_event_pointer_get_absolute_x_transformed(pevent, 1);
+ wlr_event.y = libinput_event_pointer_get_absolute_y_transformed(pevent, 1);
wlr_signal_emit_safe(&wlr_dev->pointer->events.motion_absolute, &wlr_event);
}