aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/pointer.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-28 10:33:39 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2024-02-28 16:39:18 +0000
commit488a23c16908a83041cf28e134a6f149d831598d (patch)
tree494c03a7b703c959ac87bee6d60af5ee2281c96d /backend/libinput/pointer.c
parentec5263e6b7b069da6d32fe302771f006f6b5ac22 (diff)
pointer: drop enum wlr_axis_orientation
Instead, use enum wl_pointer_axis from the Wayland protocol.
Diffstat (limited to 'backend/libinput/pointer.c')
-rw-r--r--backend/libinput/pointer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c
index 36ade694..f808e1f0 100644
--- a/backend/libinput/pointer.c
+++ b/backend/libinput/pointer.c
@@ -118,10 +118,10 @@ void handle_pointer_axis(struct libinput_event *event,
switch (axes[i]) {
case LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL:
- wlr_event.orientation = WLR_AXIS_ORIENTATION_VERTICAL;
+ wlr_event.orientation = WL_POINTER_AXIS_VERTICAL_SCROLL;
break;
case LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL:
- wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL;
+ wlr_event.orientation = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
break;
}
wlr_event.delta =
@@ -159,10 +159,10 @@ void handle_pointer_axis_value120(struct libinput_event *event,
}
switch (axes[i]) {
case LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL:
- wlr_event.orientation = WLR_AXIS_ORIENTATION_VERTICAL;
+ wlr_event.orientation = WL_POINTER_AXIS_VERTICAL_SCROLL;
break;
case LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL:
- wlr_event.orientation = WLR_AXIS_ORIENTATION_HORIZONTAL;
+ wlr_event.orientation = WL_POINTER_AXIS_HORIZONTAL_SCROLL;
break;
}
wlr_event.delta =