Re: [PATCH libinput] timer: flush the timer funcs if our events come in late

2017-09-20 Thread Benjamin Tissoires
On Wed, Sep 20, 2017 at 2:20 AM, Peter Hutterer wrote: > 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

[PATCH libinput] timer: flush the timer funcs if our events come in late

2017-09-19 Thread Peter Hutterer
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,