[PATCH xserver] os: return 0 from check_timers if we touched any of them

Keith Packard keithp at keithp.com
Thu Dec 8 04:59:28 UTC 2016


Peter Hutterer <peter.hutterer at who-t.net> writes:

> Fixes a regression introduced in 0b2f30834b1a9f. If a driver posts input
> events during a timer function (wacom and synaptics do this during tap
> timeouts), ProcessInputEvents() is not called for these events. There are no
> new events on any fds, so the events just sit in the queue waiting for
> something else to happen.
>
> Fix this by simply returning 0 from check_timers if we ran at least one of
> them or reset them all. This way the callers ospoll_wait will exit and
> continue with normal processing.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Keith Packard <keithp at keithp.com>

(nicely done, btw)

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161207/bfc11298/attachment.sig>


More information about the xorg-devel mailing list