[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9421678987: Add workaround for super modifier misconfiguration to
From: |
Po Lu |
Subject: |
master 9421678987: Add workaround for super modifier misconfiguration to non-XKB code |
Date: |
Wed, 26 Jan 2022 07:36:46 -0500 (EST) |
branch: master
commit 94216789872a24614ce85b6c0ea688eee1c9a540
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Add workaround for super modifier misconfiguration to non-XKB code
* src/xterm.c (x_find_modifier_meanings): Don't let a modifier
be both Hyper and Super.
---
src/xterm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index b2cdbe6a0f..1684048ea4 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5694,6 +5694,12 @@ x_find_modifier_meanings (struct x_display_info *dpyinfo)
dpyinfo->alt_mod_mask &= ~dpyinfo->meta_mod_mask;
}
+ /* If some keys are both super and hyper, make them just super.
+ Many X servers are misconfigured so that super and hyper are both
+ Mod4, but most users have no hyper key. */
+ if (dpyinfo->hyper_mod_mask & dpyinfo->super_mod_mask)
+ dpyinfo->hyper_mod_mask &= ~dpyinfo->super_mod_mask;
+
XFree (syms);
XFreeModifiermap (mods);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9421678987: Add workaround for super modifier misconfiguration to non-XKB code,
Po Lu <=