summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-01-12 09:44:27 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-05-08 00:36:38 +0200
commitf7133d6a242aff193540b488afca46589c23200c (patch)
treeffb32999368d933cdc54e3ed89b78eb2f4fa5b7d
parentece15faac898f36c756ffdc0b9ba4d751682440e (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 c8f3b64..0182374 100644
--- a/x.c
+++ b/x.c
@@ -438,7 +438,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);
}