[PATCH libinput] timer: flush the timer funcs if our events come in late
Benjamin Tissoires
benjamin.tissoires at gmail.com
Wed Sep 20 16:47:19 UTC 2017
On Wed, Sep 20, 2017 at 2:20 AM, Peter Hutterer <peter.hutterer at who-t.net>
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
> erroneously trigger or miss out on taps, see wrong palm detection, etc.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
>
Looks good to me:
Reviewed-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
Cheers,
Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170920/d3b437fb/attachment.html>
More information about the wayland-devel
mailing list