diff options
| author | Yuuki Harano | 2021-05-29 23:56:04 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-05-29 23:56:04 +0900 |
| commit | 7085fecf53d9506b1f626e3cab1dd90e33aa9ed0 (patch) | |
| tree | 4a2d1397ae7d6821330987185306f4cccc97be7b /src | |
| parent | 67ae4b6271233559271f7a7158ba0e059b643ba5 (diff) | |
| download | emacs-7085fecf53d9506b1f626e3cab1dd90e33aa9ed0.tar.gz emacs-7085fecf53d9506b1f626e3cab1dd90e33aa9ed0.zip | |
Disable hyper key when super and hyper conflict
* src/pgtkterm.c (x_find_modifier_meanings): If super_mod_mask and
hyper_mod_mask are equal, then disable hyper.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pgtkterm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index f79329f7ddf..e4bf7ba6bd4 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -5462,6 +5462,16 @@ x_find_modifier_meanings (struct pgtk_display_info *dpyinfo) | |||
| 5462 | { | 5462 | { |
| 5463 | dpyinfo->hyper_mod_mask = GDK_MOD3_MASK; | 5463 | dpyinfo->hyper_mod_mask = GDK_MOD3_MASK; |
| 5464 | } | 5464 | } |
| 5465 | |||
| 5466 | /* If xmodmap says: | ||
| 5467 | * $ xmodmap | grep mod4 | ||
| 5468 | * mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) | ||
| 5469 | * then, when mod4 is pressed, both of super and hyper are recognized ON. | ||
| 5470 | * Maybe many people have such configuration, and they don't like such behavior, | ||
| 5471 | * so I disable hyper if such configuration is detected. | ||
| 5472 | */ | ||
| 5473 | if (dpyinfo->hyper_mod_mask == dpyinfo->super_mod_mask) | ||
| 5474 | dpyinfo->hyper_mod_mask = 0; | ||
| 5465 | } | 5475 | } |
| 5466 | 5476 | ||
| 5467 | static void | 5477 | static void |