From d0b4e69eda1debfdb670df0c2337af4907762d4e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 29 Jun 2024 18:20:08 +0200 Subject: [PATCH] libinput: fix invalid use of axis func --- src/backend/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/Session.cpp b/src/backend/Session.cpp index 7f5e867..423e7f4 100644 --- a/src/backend/Session.cpp +++ b/src/backend/Session.cpp @@ -487,7 +487,7 @@ void Aquamarine::CSession::handleLibinputEvent(libinput_event* e) { continue; aqe.axis = axis == LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL ? IPointer::AQ_POINTER_AXIS_VERTICAL : IPointer::AQ_POINTER_AXIS_HORIZONTAL; - aqe.delta = libinput_event_pointer_get_axis_value(pe, axis); + aqe.delta = libinput_event_pointer_get_scroll_value(pe, axis); aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_IDENTICAL; if (libinput_device_config_scroll_get_natural_scroll_enabled(device)) aqe.direction = IPointer::AQ_POINTER_AXIS_RELATIVE_INVERTED;