xkb: remove superfluous inputInfo.keyboard treatment.

Really not necessary, we can just walk the list and spare us the special
treatment of the VCK.
This commit is contained in:
Peter Hutterer 2008-07-24 17:41:48 +09:30
parent 70bd826122
commit 54651ff5ec

View File

@ -2014,11 +2014,6 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
}
}
if (inputInfo.keyboard->key->xkbInfo &&
inputInfo.keyboard->key->xkbInfo->desc == dst) {
pDev = inputInfo.keyboard;
}
else {
for (tmpDev = inputInfo.devices; tmpDev && !pDev;
tmpDev = tmpDev->next) {
if (tmpDev->key && tmpDev->key->xkbInfo &&
@ -2035,7 +2030,6 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies)
break;
}
}
}
if (sendNotifies) {
if (!pDev) {