From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: PGTK-related misconceptions Date: Tue, 26 Jul 2022 10:08:59 +0800 Message-ID: <875yjkzkuc.fsf@yahoo.com> References: <87y202f4dq.fsf@treypeacock.com> <87o80xhor2.fsf@yahoo.com> <877d7lrbta.fsf@treypeacock.com> <87czdszy2r.fsf@akirakyle.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18793"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Trey Peacock , Morgan Smith , emacs-devel@gnu.org To: Akira Kyle Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 26 04:11:20 2022 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 1oGA2Z-0004gi-Fu for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 04:11:19 +0200 Original-Received: from localhost ([::1]:52088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGA2X-0007RM-56 for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Jul 2022 22:11:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGA0h-0006kT-Sv for emacs-devel@gnu.org; Mon, 25 Jul 2022 22:09:23 -0400 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:45354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGA0f-0004oi-Qk for emacs-devel@gnu.org; Mon, 25 Jul 2022 22:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658801356; bh=k8xUYaEHLdhKTghKWH9r7lTTs2geAT+zcQSPEcojWlQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=TNE56/MrGkSTxY0R4MbIRh6vu0PxbYX7WRThR5zUykdsTpSU2PlDsHgWDokrMbnispogh3r6MMba7B2FfGQ8MdUDQ7Fx8iWPT/7Y5zUZyN1KQWal3mpbKZ23EUV6rRKDd8kPeLQLE/fWyErx7NaD/f2LTDLd0c9b5qhlMi6ByuaoL3raa+07+AmzA8IUN6UgvimCNoRMPXNMJ5pCbSce8P2GOrFdeaBndgKSv7ACbAji0cuWsQkLQa4vH+hluDV2ic+ea6OAp07KLwvHOJcO9+bZKHjzCnVg65ghREAh58nGlk3kOy9fGySIdpLhkGKbn7g4lHIExoZe7dzICw/YNw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658801356; bh=93+/h8fhSfAylTSZwWoQT22NXg9SSqSuQfAHDkHiF79=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=IygkVJxDNykGploT+oJ+JW7h/O3aw/3BK7RyAzUdJ5r7e72NGfMxLZ5PnsRbreOe0qFntR9RjsuCDBFPohEWt101F74XZZj1Y5siBfPIAUKXsilNcvkQSksPBb2LtD6j4xUmpmLFiVzEoe6N76VLTJ1JHurZFj1eVyuNZWlTdzXuLS4QIx6oZ3d38BHuO0UPRBHTcwJCbfifzjPLxO2uLHvvPwB9hwiBL1e2YOmA/z7Vz9ZkloykDoiOWTI+29jmoTnMHZ8b/X47k6eLcpcEZfPd5ZJXHGAM48EyeGN368eab430yxYTslY2vzcSmVyEy0fQOBYebwk4n0BW1+hTGg== X-YMail-OSG: WdWnJeYVM1lVddwQOXOpXOFYoNrqyRl7sLQl9NWBS6EPfiw.2dG7IGlgqE_WrT. c_FZ0cQkwFYrEvSC5Shn9YeMxuLkK1DtDHlifY5pKy8D.jjY6Uflj3IOZiM56MRRwzlsGjSZ0GTI mQVxI3ORodiQZJftzzM_2DrZo4bZ43pK325UUoJOIPf88JsH97lLu97nkYoO6MS7_M8f4pepTrpb XVafJgKG9gCgfwdf1Z90umjQYziNnzr2MVGQtfFsV8ydVTJsAbdWzpT8a37OyYsTWht.y9xWXQ17 pSVSyXwASfqzPB72Vb5CZknpm6RZskQ9uO3rJupCbRcHrvSHb1hfprlL_J82cL9MaXuKAQi28GM0 .XOcPp_iwgoYJ0KZymfarIPcAbbeeAOIwle2n.UXk5OWyk4sULUriySp0m2VqjxGZRTGAcJ8gC7q K1ucFxAqk5PmoDMrnlT8ew7JtgDvWwlDYw1qDVWDzscLgtbi4UUV6wQKdPXSZqVLNldLTEEmfuvR jg4U90TOuMpivYWQtbo2l4rFihhlt5W.MTkZ.oNFyPJqhahXI0T09TkwI5tuCbhhiYeEAF3MHmBj VSVTDHDKedaoce.484PQ6dbBToRA8.faTxFQ8qbuBOTPLK8XFHDc_tucFMeYDwAzfB1FxYkFI.RH lZ3l4DSQC.o79pjujJbdYFE5gHzrnKdWvKhSNqCCrBF.1x8V8eEP1lGdxTf_8mMX_bKBUbM9oJJR KlI_jSqJSx291z5qhRh4zLl3jlHFCpMeyYOE2AaMl2ebaQxzrWgL3SEQZt_WjW6L2UfTG6wfRgAa Z.FOKUZcf1V1Xj8wb2fi.Htf4jPuiITSCTxP4_75JC X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Tue, 26 Jul 2022 02:09:16 +0000 Original-Received: by hermes--canary-production-sg3-854c886654-qwxz7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID eeef5d0971e743fa0547f3508ff969f1; Tue, 26 Jul 2022 02:09:08 +0000 (UTC) In-Reply-To: <87czdszy2r.fsf@akirakyle.com> (Akira Kyle's message of "Mon, 25 Jul 2022 15:18:31 -0600") X-Mailer: WebService/1.1.20447 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.206; envelope-from=luangruo@yahoo.com; helo=sonic312-25.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292661 Archived-At: Akira Kyle writes: > Thank you for this patch! I recently updated and ran into this > issue. From the discussion in this thread, I really don't understand > why this change was made. Is this fixing some issue for some other > non-wlroots based compositor? Yes, see below. > If it isn't, but was just made "to comply with the GDK docs" this > would seem to be just be making life more difficult for those of use > on wlroots based compositors. Emacs has many other places where it > tries to work around quirks and other issues with GTK for the benefit > of the user, so why would this be any different? It is to prevent errors when Mod4 is _not_ the super key. Very common on X (where Mod4 is commonly Hyper), and in fact it is caused by Mod4 not being part of the Super virtual modifier in the compositor's XKB configuration. The conclusion I eventually came to is that the problem lies in the XKB configuration of the Wayland compositor in question (namely, Sway), and not Emacs nor GDK. It works with GNOME Shell and kwin because they set up their keyboards with the correct virtual modifiers by default. So what I'd recommend is to start an X server where the Super key does work, run: xkbcomp $DISPLAY name/of/xkb/file.xkb and then use that file with Sway.