neuswc

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

commit f4267d64c0d80c59434e882db0cc6cfa56c01816
parent bc3909ac4076ad76f8b792470a7183670a9a0671
Author: uint <unsigned@netcat.uk>
Date:   Thu, 29 Oct 2026 15:06:46 +0000

fix wscons scroll and pointer events

send pointer frames after each event. for example, on firefox, it only
updated the mouse after it got the update on click

correct scroll wheel values to use 120 units per step

Diffstat:
Mlibswc/seat_ws.c | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/libswc/seat_ws.c b/libswc/seat_ws.c @@ -313,15 +313,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, - WL_POINTER_AXIS_VERTICAL_SCROLL, - WL_POINTER_AXIS_SOURCE_WHEEL, pos, pos * 12); + pointer_handle_axis( + seat->base.pointer, time, WL_POINTER_AXIS_VERTICAL_SCROLL, + WL_POINTER_AXIS_SOURCE_WHEEL, pos, ev.value * 120); break; case WSCONS_EVENT_MOUSE_DELTA_W: pos = wl_fixed_from_int(ev.value * 10); - pointer_handle_axis(seat->base.pointer, time, - WL_POINTER_AXIS_HORIZONTAL_SCROLL, - WL_POINTER_AXIS_SOURCE_WHEEL, pos, pos * 12); + pointer_handle_axis( + seat->base.pointer, time, WL_POINTER_AXIS_HORIZONTAL_SCROLL, + WL_POINTER_AXIS_SOURCE_WHEEL, pos, ev.value * 120); break; case WSCONS_EVENT_MOUSE_ABSOLUTE_X: pos = wl_fixed_from_int(ev.value); @@ -332,6 +332,7 @@ handle_ws_data(int fd, uint32_t mask, void *data) pointer_handle_absolute_motion(seat->base.pointer, time, 0, pos); break; } + pointer_handle_frame(seat->base.pointer); } return 0; }