From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: feature/pgtk 7085fec: Disable hyper key when super and hyper conflict Date: Sat, 29 May 2021 11:36:31 -0400 Message-ID: References: <20210529145908.27858.39953@vcs0.savannah.gnu.org> <20210529145909.CF411209BF@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15798"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Yuuki Harano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 29 17:37:39 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln11v-0003xQ-Jv for ged-emacs-devel@m.gmane-mx.org; Sat, 29 May 2021 17:37:39 +0200 Original-Received: from localhost ([::1]:57032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln11u-00023g-Mo for ged-emacs-devel@m.gmane-mx.org; Sat, 29 May 2021 11:37:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln10v-00014Y-11 for emacs-devel@gnu.org; Sat, 29 May 2021 11:36:37 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln10s-00008Q-RL for emacs-devel@gnu.org; Sat, 29 May 2021 11:36:36 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9CE3C100216; Sat, 29 May 2021 11:36:33 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 48C261001FB; Sat, 29 May 2021 11:36:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1622302592; bh=OoLl2ZT2Pk6TuMmWDvwFew5dR3en+XVOQtE6UTmwUT4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IALrm+NEQnGcsJNvI4d4H7VO0i2E4YxCCR33xXtLDPwAd5lEyT7yd5hsZtFwk2P2v 6SCJYl4zDf97bemSH4Ew5cbBZNUTUvxojT2Jb5cl94ILKDQ49s+Kfv9xc81hHj1da8 F5ZByZfUmEeLtUoCubYeyKWc0uCwl+1pHJEVKJzow9inB3nAJoMVPPO2Bmi5culgOz aDN0cdN1OJpUkVNP4Fa7bxkK884G4Lpw7s/FKWAm+YKeZAEUD0Fvq18NG0njPV4sbc fktq/wDOJyC9wxjmEpIVh+rbQuw9tUHFt5IC/XdTQjACjqrMwNcpxT+lFJRQ/I4M/Z BNJVfdklqhVKg== Original-Received: from alfajor (69-196-163-239.dsl.teksavvy.com [69.196.163.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1F7F5120657; Sat, 29 May 2021 11:36:32 -0400 (EDT) In-Reply-To: <20210529145909.CF411209BF@vcs0.savannah.gnu.org> (Yuuki Harano's message of "Sat, 29 May 2021 10:59:09 -0400 (EDT)") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270068 Archived-At: > + /* 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