From 1798cac6fa2e909c9f3df26b97ee8232a0bf1592 Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Mon, 16 Aug 2004 20:17:51 +0000 Subject: [PATCH] =?UTF-8?q?Add=20kdb=20<->=20keyboard=20aliasing=20when=20?= =?UTF-8?q?UseDeprecatedKeyboardDriver=20is=20NO=20(Bug=20=20=20=20=20#107?= =?UTF-8?q?2,=20Kristian=20H=F8gsberg).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw/xfree86/common/xf86Config.c | 5 +++-- hw/xfree86/common/xf86Init.c | 11 +---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index c88bc9433..94ec9e75d 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v 1.3 2004/07/31 09:14:06 kem Exp $ */ +/* $XdotOrg: xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v 1.4 2004/08/09 02:08:35 kem Exp $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Config.c,v 3.276 2003/10/08 14:58:26 dawes Exp $ */ @@ -374,13 +374,14 @@ xf86DriverlistFromConfig() Bool xf86BuiltinInputDriver(const char *name) { +#ifdef USE_DEPRECATED_KEYBOARD_DRIVER if (xf86NameCmp(name, "keyboard") == 0) return TRUE; else +#endif return FALSE; } - char ** xf86InputDriverlistFromConfig() { diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 07e3cc3af..0e81c5805 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1025,19 +1025,10 @@ InitInput(argc, argv) xf86MsgVerb(X_WARNING, 0, "*** Please consider using the the new \"kbd\" driver for \"%s\".\n", pDev->identifier); - continue; - } -#else - if (!xf86NameCmp(pDev->driver, "keyboard")) { - xf86MsgVerb(X_ERROR, 0, "*** ERROR the legacy keyboard driver \"keyboard\" is deprecated\n"); - xf86MsgVerb(X_ERROR, 0, "*** and has not been compiled into this X server. It will be removed\n"); - xf86MsgVerb(X_ERROR, 0, "*** in the next release of the Xorg server.\n"); - xf86MsgVerb(X_ERROR, 0, "*** Please consider using the the new \"kbd\" driver for \"%s\".\n", - pDev->identifier); - continue; } #endif + if ((pDrv = MatchInput(pDev)) == NULL) { xf86Msg(X_ERROR, "No Input driver matching `%s'\n", pDev->driver); /* XXX For now, just continue. */