forked from wayland-tablet/libinput
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Peter Hutterer <peter.hutterer@who-t.net>
- Loading branch information
Showing
3 changed files
with
198 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.