Don't set xkblayout from wscons setting if specified in xorg.conf.

Problem noticed, and patch provided by  Mike Belopuhov. Thanks.
This commit is contained in:
matthieu 2010-08-04 19:27:52 +00:00
parent 2cda6f76a0
commit 7cfab8f596

View File

@ -499,6 +499,8 @@ OpenKeyboard(InputInfoPtr pInfo)
* XkbLayout has been specified. Do this even if the protocol is
* not wskbd.
*/
if (xf86findOption(pInfo->options, "XkbLayout") != NULL)
return TRUE;
if (ioctl(pInfo->fd, WSKBDIO_GETENCODING, &wsenc) == -1) {
/* Ignore the error, we just use the defaults */