diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-08 17:13:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-13 10:30:16 +1000 |
commit | 7d703af74ced36968f4480507a7eb54d249b5edc (patch) | |
tree | b669af47dd06c7f62c66130acafd7a4f4118cab1 /hw/dmx/input | |
parent | 6e52f9233176986508356f6eee4fce86ba740e71 (diff) |
dmx: get the state from XKB for dmxCheckSpecialKeys
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/dmx/input')
-rw-r--r-- | hw/dmx/input/dmxevents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c index 528e968e3..e7c382be5 100644 --- a/hw/dmx/input/dmxevents.c +++ b/hw/dmx/input/dmxevents.c @@ -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 */ |