neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit f73931200d2bb735b4470f60d9e21eaf6fa8d6ac
parent 7330babf6cbf634971f85fa1f943ef7a80a5426a
Author: nia <nia@NetBSD.org>
Date:   Sun, 19 May 2024 17:58:43 +0200

Update seat-ws for latest version of pointer_handle_axis API

Diffstat:
Mlibswc/seat-ws.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libswc/seat-ws.c b/libswc/seat-ws.c @@ -279,11 +279,15 @@ handle_ws_data(int fd, uint32_t mask, void *data) break; case WSCONS_EVENT_MOUSE_DELTA_Z: pos = wl_fixed_from_int(ev.value * 10); - pointer_handle_axis(seat->base.pointer, time, 0, 0, pos, 0); + pointer_handle_axis(seat->base.pointer, time, + WL_POINTER_AXIS_VERTICAL_SCROLL, + WL_POINTER_AXIS_SOURCE_WHEEL, pos, pos * 12); break; case WSCONS_EVENT_MOUSE_DELTA_W: pos = wl_fixed_from_int(ev.value * 10); - pointer_handle_axis(seat->base.pointer, time, 1, 0, pos, 0); + pointer_handle_axis(seat->base.pointer, time, + WL_POINTER_AXIS_HORIZONTAL_SCROLL, + WL_POINTER_AXIS_SOURCE_WHEEL, pos, pos * 12); break; case WSCONS_EVENT_MOUSE_ABSOLUTE_X: pos = wl_fixed_from_int(ev.value);