mirror of
https://github.com/NickHu/sway
synced 2024-12-25 21:58:16 +01:00
Chase wlroots!4003
This commit is contained in:
parent
e8c421e917
commit
a4e85332a1
2 changed files with 5 additions and 3 deletions
|
@ -796,8 +796,9 @@ static void handle_pointer_axis(struct sway_seat *seat,
|
||||||
|
|
||||||
if (!handled) {
|
if (!handled) {
|
||||||
wlr_seat_pointer_notify_axis(cursor->seat->wlr_seat, event->time_msec,
|
wlr_seat_pointer_notify_axis(cursor->seat->wlr_seat, event->time_msec,
|
||||||
event->orientation, scroll_factor * event->delta,
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,8 @@ static void handle_pointer_axis(struct sway_seat *seat,
|
||||||
|
|
||||||
wlr_seat_pointer_notify_axis(seat->wlr_seat, event->time_msec,
|
wlr_seat_pointer_notify_axis(seat->wlr_seat, event->time_msec,
|
||||||
event->orientation, scroll_factor * event->delta,
|
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,
|
static void handle_button(struct sway_seat *seat, uint32_t time_msec,
|
||||||
|
|
Loading…
Reference in a new issue