evdev-touchpad: Twiddle finger_state correctly
authorRob Bradford <rob@linux.intel.com>
Tue, 9 Oct 2012 17:44:29 +0000 (18:44 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 10 Oct 2012 02:49:25 +0000 (22:49 -0400)
commit3de191e6b0aba72bac29141da6844ea3092d7c85
tree8dbf3a2bc04264d2e7c2cce9689a46dba36bed60
parentf77beeb981d64f3274a44ff2e16c43ed24d2a32f
evdev-touchpad: Twiddle finger_state correctly

The original code always set the finger_state to the appropriate bitmask
irrespective of whether the event was a press or a release. It would also blat
all members of the bitmask rather than ORing in the new bit for the event.

Cc:Jonas Ådahl <jadahl@gmail.com>
Signed-off-by: Rob Bradford <rob@linux.intel.com>
src/evdev-touchpad.c