diff options
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/pointer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 9a39b66b..f628cf22 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -126,8 +126,10 @@ void handle_pointer_axis(struct libinput_event *event, wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL; break; } - wlr_event.delta = libinput_event_pointer_get_axis_value( - pevent, axies[i]); + wlr_event.delta = + libinput_event_pointer_get_axis_value(pevent, axies[i]); + wlr_event.delta_discrete = + libinput_event_pointer_get_axis_value_discrete(pevent, axies[i]); wlr_signal_emit_safe(&wlr_dev->pointer->events.axis, &wlr_event); } } |