]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: don't leak bound scroll events from touchpad to clients
authortokyo4j <hrak1529@gmail.com>
Sat, 11 Jan 2025 14:36:58 +0000 (23:36 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 14 Jan 2025 00:35:07 +0000 (09:35 +0900)
commit08d31145fd100f474119e37528e4021e60e722ed
tree8ffdb471756ec5ded56f7f93eb5d7d6613864fe9
parent1a6b01a83e52ba3775fe1f6d04a7072505fb1674
cursor: don't leak bound scroll events from touchpad to clients

Prior to this commit, when we receive fine-grained scroll events from
touchpads that are bound to any mousebind, we leaked the scroll events to
the client unless the accumulated scroll delta exceeds the fixed threshold.
This was annoying for example when a user wants to ZoomIn/Out with
W-Up/Down mousebinds with a touchpad.

So this commit fixes it by not leaking the scroll events nor executing
actions when the accumulated delta doesn't exceed the threshold.
src/input/cursor.c