Make OpenKeyboard() warn instead of error out.

This way we can still setup keyboard map manually by xmodmap(1)
etc. on less well supported ports.

>From Izumi Tsutsui <tsutsui@NetBSD.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
Thomas Klausner
2013-07-29 23:23:43 +02:00
committed by Gaetan Nadon
parent e511907a5f
commit d61dcfd5c2

View File

@@ -432,10 +432,10 @@ OpenKeyboard(InputInfoPtr pInfo)
break;
#endif
default:
xf86Msg(X_ERROR, "%s: Unsupported wskbd type \"%d\"",
pInfo->name, pKbd->wsKbdType);
close(pInfo->fd);
return FALSE;
xf86Msg(X_WARNING, "%s: Unsupported wskbd type \"%d\"\n",
pInfo->name, pKbd->wsKbdType);
printWsType("Unknown wskbd", pInfo->name);
break;
}
}
#endif