Xi: make UpdateDeviceState aware of touch events
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 14 Dec 2011 06:33:05 +0000 (16:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Dec 2011 02:38:35 +0000 (12:38 +1000)
commitdbfd7b37a0ba21899d8ebb7e0b324301bd466c49
treefe3c198b5adfff033b04cb123d5d6685f8cec90b
parent593c3e2eb3da5c5fb957b68c8025dfdbe1139639
Xi: make UpdateDeviceState aware of touch events

Update the logical button state for pointer-emulating events. Button state
must be kept separate from the ButtonClassRec to avoid clearing the button
state on a touch end if there is a physical button still down.

And obviously don't change the button state if we're currently replaying the
event history for some client.

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