xserver-multidpi/hw/xfree86
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
..
common xfree86: move XI_VERIFY_VALUATORS to the source file it's used in. 2010-09-10 09:09:46 +10:00
ddc edid: Adjust rounding of max_clock 2010-08-20 08:55:05 -07:00
dixmods Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
doc xfree86: purge SendDragEvents support. 2010-09-01 15:26:48 +10:00
dri Make DRI_SCREEN_PRIV just return NULL when DRI isn't initialized 2010-06-07 21:49:43 -07:00
dri2 DRI2: re-allocate DRI2 drawable if pixmap serial changes 2010-07-09 16:14:14 -07:00
exa Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
fbdevhw Install fbdevhw module in normal module directory instead of linux/ 2010-06-03 07:29:50 -07:00
i2c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
int10 Record some additional library dependencies in xf86 modules 2010-06-10 19:01:22 -07:00
loader Revert "mi: Remove unused overlay support" 2010-06-22 12:11:20 -07:00
modes xfree86/modes: Allow the driver to specify initial rotation 2010-06-30 08:47:22 -07:00
os-support linux: Don't lose console events on non-evdev drivers (#29969) 2010-09-10 09:09:46 +10:00
parser xfree86: parser: Never use constant strings for driver names (fixes #17438) 2010-08-13 11:43:18 +10:00
ramdac Add API to update setting of waitForUpdate screen private in miPointer 2010-07-02 14:27:49 +10:00
shadowfb Unwrap/rewrap EnterVT/LeaveVT completely, Fixes 28998 2010-07-13 09:58:04 -07:00
utils Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
vbe Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
vgahw Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
x86emu Convert x86emu fixed size int typedefs to use stdint types 2010-04-07 16:18:24 -07:00
xaa Unwrap/rewrap EnterVT/LeaveVT completely, Fixes 28998 2010-07-13 09:58:04 -07:00
xf8_16bpp Update several of my and/or Red Hat's licenses to standard form. 2009-05-14 07:02:44 -04:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Fix relink targets for silent rules 2010-03-22 00:45:52 -05:00
xorgconf.cpp Update xorg.conf man page & sample for changes in Xorg 1.7 2009-09-14 16:03:18 +10:00