diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-04-16 19:15:30 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2009-01-22 15:08:55 +1100 |
commit | f062e90a95f9b7ae5458ef2100615e8ace9b66a7 (patch) | |
tree | 3a75bce36e2a95e085a268186c8a268bddd9bccf /hw/xquartz/quartzKeyboard.c | |
parent | cf6a2fc2bd94b392cfea120444d5e032d26f1d37 (diff) |
Input: Remove modifierKeyMap
Since modifierKeyMap is generated from modifierMap, just remove it, and
only generate it when we need to send the modifier map to the client.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xquartz/quartzKeyboard.c')
-rw-r--r-- | hw/xquartz/quartzKeyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c index 72f94b443..21736d190 100644 --- a/hw/xquartz/quartzKeyboard.c +++ b/hw/xquartz/quartzKeyboard.c @@ -370,6 +370,10 @@ void DarwinKeyboardReloadHandler(int screenNum, xEventPtr xe, DeviceIntPtr pDev, KeySymsRec keySyms; DEBUG_LOG("DarwinKeyboardReloadHandler\n"); + if (pDev->key) { + if (pDev->key->curKeySyms.map) xfree(pDev->key->curKeySyms.map); + xfree(pDev->key); + } DarwinLoadKeyboardMapping(&keySyms); DarwinKeyboardSetDeviceKeyMap(&keySyms); |