Find a file
Peter Hutterer 58e6d6afe0 xfree86: if AllowEmptyInput is true, enable RAW mode on the console.
Usually, the console is set to RAW in the kbd driver. If we hotplug all input
devices (i.e. the evdev driver for keyboards) and the console is left as-is.
As a result, the evdev driver must put an EVIOCGRAB on the device to avoid
characters leaking onto the console. This again breaks many things, amongst
them lirc, in-kernel mouse button emulation and HAL.

This patch sets the console to RAW if AllowEmptyInput is on.

Use-cases:
1. AEI is off
  1.1. Only kbd driver is used - behaviour as-is.
  1.2. kbd and evdev driver is used: if evdev does not grab the device,
       duplicate events are generated.
2. AEI is on
  2.1. Only evdev driver is used - behaviour as-is, but evdev does not need
       to grab the device anymore.
  2.2. evdev and kbd are used: duplicate key events are generated if evdev
       does not grab the device.

1.2 is a marginal use-case that can be fixed by adding a "grab" option to the
evdev driver (update of xorg.conf is needed).

2.2 is an issue. If we have no ServerLayout section, AEI is on, but devices
specified in the xorg.conf are still added [1], resulting in duplicate events.
This is a common configuration and needs sorting out.

[1] 2eaed4a10f

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit d936a4235c)
2008-11-05 13:35:26 -05:00
afb Merge branch 'master' into XACE-SELINUX 2007-11-19 18:10:46 -05:00
cfb Merge branch 'master' into XACE-SELINUX 2007-12-13 18:38:25 -05:00
cfb32 get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
composite Conditionalize Composite-based backing store on pScreen->backingStoreSupport. 2008-09-17 15:48:56 -07:00
config config: don't add duplicate devices through HAL. 2008-11-05 13:30:32 -05:00
damageext Revert "registry: Register DAMAGE extension protocol names." 2007-11-20 17:31:00 -05:00
dbe dbe: fix DoS reported by iDefense. 2008-06-12 09:04:47 +10:00
dix Revert "Array-index based devPrivates implementation." 2008-10-09 14:53:29 -04:00
doc Xserver.man: Typo (the the). 2008-09-02 17:57:34 -04:00
exa exa: Add exaDrawableIsOffscreen() to the driver API. 2008-11-05 13:02:46 -05:00
fb Bug #12414: Create full-fledged pixmaps in fb24_32ReformatTile(). 2008-06-20 13:31:18 -04:00
glx Bug #18159: Spell "anisotropic" correctly 2008-10-27 09:46:52 -04:00
hw xfree86: if AllowEmptyInput is true, enable RAW mode on the console. 2008-11-05 13:35:26 -05:00
include Add backtrace definitions to dix-config.h.in 2008-10-27 09:46:37 -04:00
mfb Remove usage of mfbChangeWindowAttributes missed in e4d11e58c... 2008-10-06 20:10:25 -07:00
mi mieq: Backtrace when the queue overflows. 2008-10-27 09:46:32 -04:00
miext Wrap AddTraps in exa and damage. 2008-06-30 13:50:57 -04:00
os Close well known connections in ServerAbort() 2008-11-05 13:04:33 -05:00
randr RANDR: Fix output property event delivery. 2008-11-05 13:01:10 -05:00
record CVE-2008-1377 - RECORD and Security extensions memory corruption 2008-06-11 11:27:00 -04:00
render Don't return BadAlloc when trying to set a PictureFilter with no parameters when a filter with parameters was previously set. 2008-07-23 13:50:54 -04:00
Xext Fix panoramiX request and reply swapping 2008-09-23 10:36:20 -04:00
xfixes Normalize swapped dispatch for Fixes{ChangeSaveSet,SelectSelectionInput} 2008-02-22 15:25:26 -05:00
Xi Xi: ChangeDeviceControl presence events should set the appropriate devchange. 2008-07-29 10:16:16 +09:30
xkb xkb: squash canonical types into explicit ones on core reconstruction. 2008-10-08 11:15:21 -04:00
XTrap Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array. 2008-06-24 14:13:30 -04:00
.gitignore gitignore: Add two more bits 2008-04-07 10:27:04 -04:00
acinclude.m4 Include comment/copyright/license for AC_DEFINE_DIR in acinclude.m4 2007-07-25 17:42:23 -07:00
autogen.sh Use canonical autogen.sh, which supports srcdir != objdir autogen. 2005-07-01 21:13:36 +00:00
configure.ac xserver 1.5.2 2008-10-10 15:26:32 -04:00
COPYING COPYING: Collapse 'canonical license' into one statement 2007-11-07 03:58:56 +02:00
cpprules.in For MANDEFS, also replace __mandir__ for $(mandir) which includes 2006-12-08 15:51:44 -06:00
Makefile.am Move GL/glx on level up now that it's the only thing left under GL. 2008-06-26 16:14:52 -04:00
xorg-server.m4 Add xorg-server.m4 for driver dependency checking. 2005-11-01 15:01:51 +00:00
xorg-server.pc.in Export the server ABI versions from xorg-server.pc 2007-11-05 17:18:46 -05:00