projects
/
suckless
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d97fe
)
X10/SGR mouse: use alt as meta key instead of super/windows key
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Wed, 12 Jan 2022 08:44:27 +0000
(09:44 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Wed, 12 Jan 2022 08:44:27 +0000
(09:44 +0100)
x.c
patch
|
blob
|
history
diff --git
a/x.c
b/x.c
index 5f4ea734b60e44845a5ac559cc7611cd8058765e..cd96575be257240b094888f9ca2bbdaaa0e3792a 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);
}