xkb: Fix a mis-use of inputInfo.keyboard.

This commit is contained in:
Peter Hutterer 2009-03-13 16:20:56 +10:00
parent c97c6c3de3
commit 23686e5680

View File

@ -918,15 +918,14 @@ Bool
XkbFilterEvents(ClientPtr pClient,int nEvents,xEvent *xE)
{
int i, button_mask;
DeviceIntPtr pXDev = inputInfo.keyboard;
DeviceIntPtr pXDev = NULL;
XkbSrvInfoPtr xkbi;
if (xE->u.u.type & EXTENSION_EVENT_BASE)
{
pXDev = XIGetDevice(xE);
if (!pXDev)
pXDev = inputInfo.keyboard;
}
if (!pXDev)
pXDev = PickKeyboard(pClient);
xkbi= (pXDev->key) ? pXDev->key->xkbInfo : NULL;