fallback: when force-releasing keys, release them directly
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 30 Jan 2019 04:10:28 +0000 (14:10 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Jan 2019 05:09:44 +0000 (15:09 +1000)
commitc75c00dac388d30f1117a0e6cb74eb834d2fbbb6
tree2e0dc447b05d634d1c2fa9a00ee289268dad78f6
parent507441537eb2624dc8d6e0820b77881d6e43199a
fallback: when force-releasing keys, release them directly

An emulated button is recorded as BTN_MIDDLE in the key down mask. If the
device is removed in that state, the BTN_MIDDLE event processed triggers
an assertion when we try to send out the event twice.

Fixes #201

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-fallback.c
test/test-pointer.c