aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-04 13:42:53 +0100
committerGitHub <noreply@github.com>2019-01-04 13:42:53 +0100
commit610f5bfc7712657fafea507f3d830cd6d60dc836 (patch)
tree8be316c900366e386349b28d5943105deee88a71 /backend/libinput
parentbcf48931db14f24fcd35a6999969864ca2539d32 (diff)
parent78caed0c99f64e6192778ea90371848323f72379 (diff)
Merge pull request #1432 from ForTheReallys/relative-pointers
Relative pointers
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/pointer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c
index fb85cddd..b9cf1dfe 100644
--- a/backend/libinput/pointer.c
+++ b/backend/libinput/pointer.c
@@ -36,6 +36,8 @@ void handle_pointer_motion(struct libinput_event *event,
usec_to_msec(libinput_event_pointer_get_time_usec(pevent));
wlr_event.delta_x = libinput_event_pointer_get_dx(pevent);
wlr_event.delta_y = libinput_event_pointer_get_dy(pevent);
+ wlr_event.unaccel_dx = libinput_event_pointer_get_dx_unaccelerated(pevent);
+ wlr_event.unaccel_dy = libinput_event_pointer_get_dy_unaccelerated(pevent);
wlr_signal_emit_safe(&wlr_dev->pointer->events.motion, &wlr_event);
}