aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-01-12 09:44:27 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-01-12 09:44:27 +0100
commit2c5edf28ec851907305d73c6218ce75d39f1767f (patch)
treea0b157fa808af72b7c67a0abbaed68bc1f2a113e
parentb1d97fec47b0d6633addb848131388ec40154ebc (diff)
downloadst-2c5edf28ec851907305d73c6218ce75d39f1767f.tar.zst
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 5f4ea73..cd96575 100644
--- a/x.c
+++ b/x.c
@@ -415,7 +415,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);
}