- Update xserver-1.5.2-disable-kbd-mouse.patch: if no config file is present,

we need to force AllowEmptyInput on.
This commit is contained in:
Dave Airlie 2008-10-19 07:53:35 +00:00
parent 9d98434292
commit 36856bd068
2 changed files with 22 additions and 3 deletions

View File

@ -19,7 +19,7 @@
Summary: X.Org X11 X server Summary: X.Org X11 X server
Name: xorg-x11-server Name: xorg-x11-server
Version: 1.5.2 Version: 1.5.2
Release: 5%{?dist} Release: 6%{?dist}
URL: http://www.x.org URL: http://www.x.org
License: MIT License: MIT
Group: User Interface/X Group: User Interface/X
@ -521,6 +521,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sun Oct 19 2008 Peter Hutterer <peter.hutterer@redhat.com> 1.5.2-6
- Update xserver-1.5.2-disable-kbd-mouse.patch: if no config file is present,
we need to force AllowEmptyInput on.
* Thu Oct 16 2008 Peter Hutterer <peter.hutterer@redhat.com> 1.5.2-5 * Thu Oct 16 2008 Peter Hutterer <peter.hutterer@redhat.com> 1.5.2-5
- xserver-1.5.2-enable-RAW-console.patch: enable RAW mode for console, no need - xserver-1.5.2-enable-RAW-console.patch: enable RAW mode for console, no need
for grabbing the evdev device anymore. for grabbing the evdev device anymore.

View File

@ -1,4 +1,4 @@
From 64db18dbc3a28e5b81140df0c76d1e1c38e9b225 Mon Sep 17 00:00:00 2001 From d3863202cba03fe564d6cc1fe3641f017392c9e7 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@redhat.com> From: Peter Hutterer <peter.hutterer@redhat.com>
Date: Thu, 16 Oct 2008 11:22:29 +1030 Date: Thu, 16 Oct 2008 11:22:29 +1030
Subject: [PATCH] xfree86: If AEI is on, disable "kbd" and "mouse" devices. Subject: [PATCH] xfree86: If AEI is on, disable "kbd" and "mouse" devices.
@ -11,9 +11,11 @@ And after finishing the server layout, run through the list of devices and
remove any that use mouse or kbd. remove any that use mouse or kbd.
AEI is mutually exclusive with the kbd and mouse drivers, so pick either - or. AEI is mutually exclusive with the kbd and mouse drivers, so pick either - or.
If no config file is present, force AEI on.
--- ---
hw/xfree86/common/xf86Config.c | 39 +++++++++++++++++++++++++++++++++++++-- hw/xfree86/common/xf86Config.c | 39 +++++++++++++++++++++++++++++++++++++--
1 files changed, 37 insertions(+), 2 deletions(-) hw/xfree86/common/xf86Init.c | 2 ++
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index a1c2e34..ac80add 100644 index a1c2e34..ac80add 100644
@ -79,6 +81,19 @@ index a1c2e34..ac80add 100644
} }
/* /*
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index 68dc387..eb4ebfa 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -508,6 +508,8 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
xf86Msg(X_ERROR, "Error parsing the config file\n");
return;
case CONFIG_NOFILE:
+ /* No config file? Then we want HAL to give us the devices. */
+ xf86Info.allowEmptyInput = TRUE;
autoconfig = TRUE;
break;
}
-- --
1.6.0.1 1.6.0.1