]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: prevent hi-res mice triggering scroll actions too often
authortokyo4j <hrak1529@gmail.com>
Mon, 21 Jul 2025 15:19:22 +0000 (00:19 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 22 Jul 2025 10:31:55 +0000 (19:31 +0900)
commitcb79eccea1e259b1979ec4767922256defcda8f3
treecee087e3f7e1df522838074aafb2d9854e3dac4c
parent1747d9e96147693d2709cdf0e2e62797752943f3
cursor: prevent hi-res mice triggering scroll actions too often

Hi-res mice produces mulitple scroll events with `delta_discrete` != 0
during a single "click". This patch makes them trigger `Scroll` actions
only when the accumulated `delta_discrete` exceeds 120 (= 1 click).

See https://lists.freedesktop.org/archives/wayland-devel/2019-April/040377.html
for how hi-res scroll events are reported.
include/labwc.h
src/input/cursor.c