evdev: always default to the middle button for button-scrolling
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jun 2015 06:32:41 +0000 (16:32 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jun 2015 07:22:25 +0000 (17:22 +1000)
commit5b940e6a3f066ff25034bcf5a83278b695ad6836
tree893f293c5aaadb3a1897829a8ab4071f62c2a346
parent9d84dddf91dcbcbf8ed70f143520998d5f775814
evdev: always default to the middle button for button-scrolling

The current code only defaulted to the middle button for those devices that
used button scrolling by default, requiring the user to enable button
scrolling _and_ set the button before it is active. This causes some
confusion.

There is no real benefit to leaving the button at 0 when the scroll
method isn't enabled anyway. So always default to the middle button (if
available).

https://bugzilla.redhat.com/show_bug.cgi?id=1227182

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev.c