[hackers] [st] X10/SGR mouse: use alt as meta key instead of super/windows key || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Wed, 12 Jan 2022 09:47:56 +0100 (CET)

commit 2c5edf28ec851907305d73c6218ce75d39f1767f
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Wed Jan 12 09:44:27 2022 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Wed Jan 12 09:44:27 2022 +0100

    X10/SGR mouse: use alt as meta key instead of super/windows key

diff --git a/x.c b/x.c
index 5f4ea73..cd96575 100644
--- a/x.c
+++ b/x.c
_AT_@ -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);
         }
 
Received on Wed Jan 12 2022 - 09:47:56 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 12 2022 - 09:48:37 CET