Add kdb <-> keyboard aliasing when UseDeprecatedKeyboardDriver is NO (Bug

#1072, Kristian Hgsberg).
This commit is contained in:
Kevin E Martin 2004-08-16 20:17:51 +00:00
parent 6cac342517
commit 1798cac6fa
2 changed files with 4 additions and 12 deletions

View File

@ -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()
{

View File

@ -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. */