xserver/hw
Jason Gerecke d8f63717e0 xfree86: Fix interpretation of xf86WaitForInput timeout
Commit aa6717ce2 switched xf86WaitForInput from using select(2) to using
poll(2). Before this change, the timeout was interpreted as being in
microseconds; afterwards it is fed directly to xorg_poll which interprets
it as being in milliseconds. This results in the function potentially
blocking 1000x longer than intended. This commit scales down the timeout
argument before passing it to xorg_poll, being careful to ensure the result
is not rounded down due to integer division.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 2fbf62b2fb)
2017-09-25 15:34:10 -04:00
..
dmx dmx: Fix null pointer dereference 2017-09-22 18:45:59 +02:00
kdrive xephyr: Check for host XVideo support before trying to use it 2017-09-22 18:45:59 +02:00
vfb Remove fd_set from Block/Wakeup handler API 2016-07-18 15:27:51 -04:00
xfree86 xfree86: Fix interpretation of xf86WaitForInput timeout 2017-09-25 15:34:10 -04:00
xnest Remove fd_set from Block/Wakeup handler API 2016-07-18 15:27:51 -04:00
xquartz os: Handle SIGABRT 2017-09-25 15:34:10 -04:00
xwayland xwayland: Monitor client states to destroy callbacks 2017-03-13 09:56:24 +01:00
xwin hw/xwin: Add 'dri' to DIST_SUBDIRS 2016-09-16 10:57:23 -07:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00