touchpad: fix left-handed top software trackpoint buttons
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 30 Mar 2016 05:31:07 +0000 (15:31 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Mar 2016 21:34:32 +0000 (07:34 +1000)
commit1ecf6d7a607c5f481eb9b3b6365d7b55a0f18c53
tree44c8d99622d9ca47b72d74223ce4be1e063701ca
parent455498e9d720c00b2d92d3dcf603a62dbc122a8e
touchpad: fix left-handed top software trackpoint buttons

The previous code would swap the top software buttons depending on the
touchpad's left-handed setting, not the trackpoint setting. Changing both
devices to left-handed resulted in a double-swap, i.e. the trackpoint was
always right-handed.

https://bugs.freedesktop.org/show_bug.cgi?id=94733

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