fallback: cancel the debounce timers during device remove, not destroy
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 29 Jun 2018 03:43:15 +0000 (13:43 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 29 Jun 2018 03:52:17 +0000 (13:52 +1000)
commit1f3f681fa70a04b80a87011a24cb6e2b827ab231
tree9c09c5a947b1274425d3d44aa257de4d8957cb80
parent1ec17d5e2a579f9162ecd5d2b700046599042bef
fallback: cancel the debounce timers during device remove, not destroy

destroy isn't called until the last libinput_device_unref(), so we may trigger
a debounce timer after the device was removed. The same fix is neded for the
touchpad interface.

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/72

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