evdev: Store positions for all touch points in the evdev device
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Dec 2011 03:18:36 +0000 (22:18 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Dec 2011 16:32:39 +0000 (11:32 -0500)
commit3937354eef0a86a67fe3649254a0fcd094a4ab13
treeaa28a25f666bbc70a3bcbec99be22f01a5902612
parent3543ff4f823fbf17fae02d0226fd50ac0af95e32
evdev: Store positions for all touch points in the evdev device

We need to store all touchpoint positions so that if we just get an
ABS_MT_POSITION_X or Y event, we can pull the other coordinate from the
cache.  And we need this across invocations of evdev_input_device_data(),
so the accumulator approach doesn't work.

Instead, we go back to the approach of storing all this state in the
evdev device struct and we might as well just move the rel and abs state
there too.
compositor/evdev.c