xserver-multidpi/hw
Thomas Hellstrom da31ca747f linux: Don't lose console events on non-evdev drivers (#29969)
The drain_console() function will race with new keyboard events being added
by the hardware causing the server to lose keyboard events if the console fd
is used for input.

Only use the drain_console() when AllowEmptyInput is off which is the best
indicator we have for whether the keyboard driver will be used. This patch
will only fix the bug when hotplugging is disabled.
What we really need is a way to figure out either whether we're _not_ using
the keyboard driver (not predictable) or a way for the keyboard driver to
disable drain_console().

X.Org Bug 29969 <http://bugs.freedesktop.org/show_bug.cgi?id=29969>

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 71972c2534)
2010-09-10 09:09:46 +10:00
..
dmx input: Purge AddOtherInputDevices DDX hook. 2010-09-01 15:26:52 +10:00
kdrive input: Purge AddOtherInputDevices DDX hook. 2010-09-01 15:26:52 +10:00
vfb input: Purge Register*Device() functions. 2010-09-01 15:26:47 +10:00
xfree86 linux: Don't lose console events on non-evdev drivers (#29969) 2010-09-10 09:09:46 +10:00
xnest dix: purge leftover manual key down bit setting. 2010-07-07 13:29:46 +10:00
xquartz input: Purge AddOtherInputDevices DDX hook. 2010-09-01 15:26:52 +10:00
xwin input: Purge Register*Device() functions. 2010-09-01 15:26:47 +10:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00