summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-01-12 09:44:27 +0100
committerrafa_99 <raroma09@gmail.com>2022-01-12 21:42:23 +0000
commit3a0653d01f5275a7d3dabdd01bf799856930bfa7 (patch)
treebd503db6bf2040f99c57fee33a93b1fa4ff6cf52
parentebe5c5d70e16ba4a6bb805178d78d17902ec31c6 (diff)
X10/SGR mouse: use alt as meta key instead of super/windows key
-rw-r--r--x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x.c b/x.c
index 00d123d..264e086 100644
--- a/x.c
+++ b/x.c
@@ -420,7 +420,7 @@ mousereport(XEvent *e)
if (!IS_SET(MODE_MOUSEX10)) {
code += ((state & ShiftMask ) ? 4 : 0)
- + ((state & Mod4Mask ) ? 8 : 0)
+ + ((state & Mod1Mask ) ? 8 : 0) /* meta key: alt */
+ ((state & ControlMask) ? 16 : 0);
}