tablet: Improve forced prox out behavior.
authorJohn Chadwick <johnwchadwick@gmail.com>
Sun, 29 Sep 2019 23:35:09 +0000 (23:35 +0000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 29 Sep 2019 23:35:09 +0000 (23:35 +0000)
commit8568cf1b3a002c9894ae0326170090637b466b55
tree4bb743c82c2158d5d936597790e5503b19388700
parenta5c6571ed054486d59b2228966fb423757596408
tablet: Improve forced prox out behavior.

Some graphics tablets (most or all Wacom, for example) do not emit
proximity out events when the tablet pen goes out of range. To
compensate for this, libinput synthesizes proximity out events when no
events are received for a certain period of time. Unfortunately, on some
tablets, this is fairly failure prone when moving the pen slowly. As a
workaround, this patch causes libinput to avoid synthesizing proximity
out events when the pen is still in contact with the tablet pad, as
defined by the TABLET_TOOL_IN_CONTACT status.
src/evdev-tablet.c
test/test-tablet.c