Skip to content
Commit 9deb57e9 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

tablet: move tablet tool change processing to tablet_flush



Unlike virtually everything else, the tablet tool was processed at the time
the event was read rather than when the subsequent EV_SYN came in. This causes
difficulties with tablets that send the wrong BTN_TOOL_PEN events.

Moving the tool change processing to tablet_flush() makes the injection of the
BTN_TOOL_PEN event a lot easier, simply flipping the matching bit does the
job. It also makes it easier to ignore duplicate tool updates like we've seen
in #259.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 48236ca1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment