Skip to content

Disable button scroll timeout for extra mouse buttons

This is my proposal solution for this requested feature: #677 (closed). For the motivation, please see the text in the issue description.

It's tested with my Logitech G703 mouse. I'm using Option "ScrollButton" "10" on my xorg.conf and that makes it scroll with the extra tiny button that is located just below the wheel:

Screenshot_20211008_143252

With this configuration, in this piece of code my device->scroll.button comes set with the value 0x115. That is defined as the constant BTN_FORWARD, even though my actual button being used is definitely not the "go forward" button. So I used the constant BTN_FORWARD as the criterium: if the scroll button is that or higher, it will do immediate scroll without the timeout.

I find it a little weird that the constant name has actually nothing to do with the actual button being used. I ask for someone more experienced than me to validate this solution. CC @JoseExposito @whot.

Fix #677 (closed)

Edited by Eduardo de Souza Cruz

Merge request reports