dmx: get the state from XKB for dmxCheckSpecialKeys
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6e52f92331
commit
7d703af74c
|
@ -778,9 +778,9 @@ int dmxCheckSpecialKeys(DevicePtr pDev, KeySym keySym)
|
||||||
unsigned short state = 0;
|
unsigned short state = 0;
|
||||||
|
|
||||||
if (dmxLocal->sendsCore)
|
if (dmxLocal->sendsCore)
|
||||||
state = dmxLocalCoreKeyboard->pDevice->key->state;
|
state = XkbStateFieldFromRec(&dmxLocalCoreKeyboard->pDevice->key->xkbInfo->state);
|
||||||
else if (dmxLocal->pDevice->key)
|
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 */
|
if (!dmxLocal->sendsCore) return 0; /* Only for core devices */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue