]> diplodocus.org Git - xorg-xinput/commit
list: only check the last bit in the device mode.
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Jun 2010 05:52:31 +0000 (15:52 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Jun 2010 05:59:04 +0000 (15:59 +1000)
commita5c9b0ffb969f71ec73a6c65f5135f5aa7805a38
tree63a7abceef0b7622df54238bb65adb239e17ac1d
parent3778f707cca0b9f023a8a5fc86e26776ef6e1b6c
list: only check the last bit in the device mode.

This works around a bug in X servers 1.7.x, 1.8.0 and 1.8.1 where the device
mode could sometimes be binary OR'd with the OutOfProximity flag. The result
was a value of 0b10 for relative and 0b11 for Absolute, both of which were
interpreted as relative by this code.

Affected is only the XIQueryDevice call, not the XListInputDevices call.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/list.c