unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: feature/pgtk 7085fec: Disable hyper key when super and hyper conflict
       [not found] ` <20210529145909.CF411209BF@vcs0.savannah.gnu.org>
@ 2021-05-29 15:36   ` Stefan Monnier
  2021-05-30  3:43     ` Yuuki Harano
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2021-05-29 15:36 UTC (permalink / raw)
  To: Yuuki Harano; +Cc: emacs-devel

> +  /* If xmodmap says:
> +   *   $ xmodmap | grep mod4
> +   *   mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
> +   * then, when mod4 is pressed, both of super and hyper are recognized ON.
> +   * Maybe many people have such configuration, and they don't like such behavior,
> +   * so I disable hyper if such configuration is detected.
> +   */
> +  if (dpyinfo->hyper_mod_mask == dpyinfo->super_mod_mask)
> +    dpyinfo->hyper_mod_mask = 0;

IIUC the same problem can appear under X11.  Do we have similar code in
the X11 code for that?  If not, should we add it as well?


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: feature/pgtk 7085fec: Disable hyper key when super and hyper conflict
  2021-05-29 15:36   ` feature/pgtk 7085fec: Disable hyper key when super and hyper conflict Stefan Monnier
@ 2021-05-30  3:43     ` Yuuki Harano
  0 siblings, 0 replies; 2+ messages in thread
From: Yuuki Harano @ 2021-05-30  3:43 UTC (permalink / raw)
  To: monnier; +Cc: emacs-devel


On Sat, 29 May 2021 11:36:31 -0400,
	Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> +  /* If xmodmap says:
>> +   *   $ xmodmap | grep mod4
>> +   *   mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
>> +   * then, when mod4 is pressed, both of super and hyper are recognized ON.
>> +   * Maybe many people have such configuration, and they don't like such behavior,
>> +   * so I disable hyper if such configuration is detected.
>> +   */
>> +  if (dpyinfo->hyper_mod_mask == dpyinfo->super_mod_mask)
>> +    dpyinfo->hyper_mod_mask = 0;
> 
> IIUC the same problem can appear under X11.  Do we have similar code in
> the X11 code for that?  If not, should we add it as well?

On XGTK, the same problem doesn't occur even if I have the same
configuration.  I think XGetModifierMapping() have the similar
code.

-- 
Yuuki Harano



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-30  3:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210529145908.27858.39953@vcs0.savannah.gnu.org>
     [not found] ` <20210529145909.CF411209BF@vcs0.savannah.gnu.org>
2021-05-29 15:36   ` feature/pgtk 7085fec: Disable hyper key when super and hyper conflict Stefan Monnier
2021-05-30  3:43     ` Yuuki Harano

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).