aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-01-12 09:44:27 +0100
committersinanmohd <pcmsinan@gmail.com>2023-01-12 08:21:56 +0530
commit5d519b31b595bf1a586b601136e65c9a9b9ca10f (patch)
treef1b908099ba35b2d41401419871660f55e952f6d
parent6e6d0acb75d7da6b9863bbe1b0c229f78aa802b8 (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 9c778e0..72793f7 100644
--- a/x.c
+++ b/x.c
@@ -435,7 +435,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);
}