Skip to content
Snippets Groups Projects
Commit a6f0e4ae authored by Peter Hutterer's avatar Peter Hutterer
Browse files

timer: flush the timer funcs if our events come in late


Avoid processing an event with a time later than the earliest timer expiry. If
libinput_dispatch() isn't called frequently enough, we may have e.g. a tap
timeout happening but read a subsequent input event first. In that case we can
erroneously trigger or miss out on taps, see wrong palm detection, etc.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
parent 77890ecc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment