diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-09-27 22:26:22 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-09-27 23:25:43 -0700 |
commit | 9e19eb2de811bfa8fb6915debd07eb9f4db02557 (patch) | |
tree | 888b4b8f9312ef2c73e1cc2f285fed5d4168b6f3 | |
parent | a02fad25479fbe13685c55dacd9d19d0a4cd5f61 (diff) |
XQuartz: Fix inverse map from mode_switch to alt
(cherry picked from commit de6cee11e1c335a0e5f708e7641e81d3cfe52529)
-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 8ef489dce..4a52df797 100644 --- a/hw/xquartz/quartzKeyboard.c +++ b/hw/xquartz/quartzKeyboard.c @@ -251,6 +251,10 @@ static void DarwinBuildModifierMaps(darwinKeyboardInfo *info) { break; case XK_Mode_switch: + info->modifierKeycodes[NX_MODIFIERKEY_ALTERNATE][0] = i; +#ifdef NX_MODIFIERKEY_RALTERNATE + info->modifierKeycodes[NX_MODIFIERKEY_RALTERNATE][0] = i; +#endif info->modMap[MIN_KEYCODE + i] = Mod1Mask; break; |