dmx: get the state from XKB for dmxCheckSpecialKeys

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-09-08 17:13:38 +10:00
parent 6e52f92331
commit 7d703af74c
1 changed files with 2 additions and 2 deletions

View File

@ -778,9 +778,9 @@ int dmxCheckSpecialKeys(DevicePtr pDev, KeySym keySym)
unsigned short state = 0;
if (dmxLocal->sendsCore)
state = dmxLocalCoreKeyboard->pDevice->key->state;
state = XkbStateFieldFromRec(&dmxLocalCoreKeyboard->pDevice->key->xkbInfo->state);
else if (dmxLocal->pDevice->key)
state = dmxLocal->pDevice->key->state;
state = XkbStateFieldFromRec(&dmxLocal->pDevice->key->xkbInfo->state);
if (!dmxLocal->sendsCore) return 0; /* Only for core devices */