aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2024-01-22 21:24:41 +0300
committerSimon Ser <contact@emersion.fr>2024-01-23 10:45:58 +0100
commita4e85332a1fe6b079c6da1689ca33d8ba4c71977 (patch)
tree23568108f2444773d2043b15d7d9ee5a5b82dd8f /sway/input
parente8c421e917ac59cdf50e5fd366155ea875e4a29e (diff)
Chase wlroots!4003
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seatop_default.c5
-rw-r--r--sway/input/seatop_down.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 0f4d0385..c56330fd 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -796,8 +796,9 @@ static void handle_pointer_axis(struct sway_seat *seat,
if (!handled) {
wlr_seat_pointer_notify_axis(cursor->seat->wlr_seat, event->time_msec,
- event->orientation, scroll_factor * event->delta,
- roundf(scroll_factor * event->delta_discrete), event->source);
+ event->orientation, scroll_factor * event->delta,
+ roundf(scroll_factor * event->delta_discrete), event->source,
+ event->relative_direction);
}
}
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c
index 36f9bb60..b4421fe6 100644
--- a/sway/input/seatop_down.c
+++ b/sway/input/seatop_down.c
@@ -137,7 +137,8 @@ static void handle_pointer_axis(struct sway_seat *seat,
wlr_seat_pointer_notify_axis(seat->wlr_seat, event->time_msec,
event->orientation, scroll_factor * event->delta,
- roundf(scroll_factor * event->delta_discrete), event->source);
+ roundf(scroll_factor * event->delta_discrete), event->source,
+ event->relative_direction);
}
static void handle_button(struct sway_seat *seat, uint32_t time_msec,