[mutter] backends/native: Migrate continuous scroll



commit a1c50194a9ce56f830800fea04cf7aa680c70680
Author: José Expósito <jose exposito89 gmail com>
Date:   Mon Sep 20 19:53:11 2021 +0200

    backends/native: Migrate continuous scroll
    
    In order to get the delta X/Y value of the
    LIBINPUT_EVENT_POINTER_SCROLL_FINGER
    or LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS events the new function
    libinput_event_pointer_get_scroll_value should be used instead of
    libinput_event_pointer_get_axis_value.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1962>

 src/backends/native/meta-seat-impl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c
index 2bb721be6d..6f3380691c 100644
--- a/src/backends/native/meta-seat-impl.c
+++ b/src/backends/native/meta-seat-impl.c
@@ -1895,7 +1895,7 @@ notify_continuous_axis (MetaSeatImpl                  *seat_impl,
   if (libinput_event_pointer_has_axis (axis_event,
                                        LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL))
     {
-      dx = libinput_event_pointer_get_axis_value (
+      dx = libinput_event_pointer_get_scroll_value (
           axis_event, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL);
 
       if (fabs (dx) < DBL_EPSILON)
@@ -1904,7 +1904,7 @@ notify_continuous_axis (MetaSeatImpl                  *seat_impl,
   if (libinput_event_pointer_has_axis (axis_event,
                                        LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL))
     {
-      dy = libinput_event_pointer_get_axis_value (
+      dy = libinput_event_pointer_get_scroll_value (
           axis_event, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);
 
       if (fabs (dy) < DBL_EPSILON)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]