summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-27 22:26:22 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-27 23:31:23 -0700
commit15e15816a2f011d0aeeaff9e394d30a147c973ce (patch)
treec64733d1d1b651b7614dc2e298ea9ef5895e8db6
parent558d803b2966c2e44345a80e635e091dc3e49f02 (diff)
XQuartz: Fix inverse map from mode_switch to alt
(cherry picked from commit de6cee11e1c335a0e5f708e7641e81d3cfe52529)
-rw-r--r--hw/xquartz/quartzKeyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c
index b3a4eccfb..d36d967a2 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;