summaryrefslogtreecommitdiff
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-09-28 05:26:22 (GMT)
committer Jeremy Huddleston <jeremyhu@freedesktop.org>2009-09-28 05:26:22 (GMT)
commitde6cee11e1c335a0e5f708e7641e81d3cfe52529 (patch) (side-by-side diff)
tree5cd0180a69037e7589858fed8cd7ba556ed62e96
parentceaa5c779ceed3de5ea53727649613be3133b24e (diff)
downloadxserver-de6cee11e1c335a0e5f708e7641e81d3cfe52529.zip
xserver-de6cee11e1c335a0e5f708e7641e81d3cfe52529.tar.gz
XQuartz: Fix inverse map from mode_switch to alt
Diffstat (more/less context) (ignore whitespace changes)
-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 b3a4ecc..d36d967 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;