summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86xv.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-09-02 10:53:28 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2010-09-09 10:53:34 +1000
commit71972c2534d490284d3d42b456c2f34b964b2894 (patch)
treefce9e3550634f647682c04c8d437865581441e3e /hw/xfree86/common/xf86xv.c
parente00e2e7b68fbc932269d607ac5dc2c441d07ad9d (diff)
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>
Diffstat (limited to 'hw/xfree86/common/xf86xv.c')
0 files changed, 0 insertions, 0 deletions