dix: button state must show the logical buttons, not physical buttons
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 16 Dec 2011 02:41:08 +0000 (12:41 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Dec 2011 04:16:36 +0000 (14:16 +1000)
commit76c11e0872dedcd360cbe02cf62bb9de3b212957
treeb2efd3a04a08e527bd0b6debdcb8539eeb219004
parent8a32c39c00789c16006de61112627722ce548be1
dix: button state must show the logical buttons, not physical buttons

If the device is mapped 3 2 1, a click on physical button 1 sends a button 3
press, but the state was set for button 1. Fix this, the state must be set
for that button's logical mapping.

https://bugzilla.gnome.org/show_bug.cgi?id=655928

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
dix/inpututils.c