Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
X10/SGR mouse: use alt as meta key instead of super/windows key
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
5f4ea73
..
cd96575
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-415,7
+415,7
@@
mousereport(XEvent *e)
if (!IS_SET(MODE_MOUSEX10)) {
code += ((state & ShiftMask ) ? 4 : 0)
- + ((state & Mod
4Mask ) ? 8 : 0)
+ + ((state & Mod
1Mask ) ? 8 : 0) /* meta key: alt */
+ ((state & ControlMask) ? 16 : 0);
}