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: Wed, 20 Apr 2022 08:48:31 +0800 Message-ID: <875yn4eg0w.fsf@yahoo.com> References: <87y202f4dq.fsf@treypeacock.com> <87o80xhor2.fsf@yahoo.com> <877d7lrbta.fsf@treypeacock.com> <87mtghg0j6.fsf@yahoo.com> <87pmlcad91.fsf@treypeacock.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="33544"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Morgan Smith , emacs-devel@gnu.org To: Trey Peacock Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 20 02:49:26 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 1ngyX8-0008Xr-Bg for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Apr 2022 02:49:26 +0200 Original-Received: from localhost ([::1]:33320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngyX6-0006Ba-SC for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Apr 2022 20:49:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngyWT-0005Ud-Ia for emacs-devel@gnu.org; Tue, 19 Apr 2022 20:48:45 -0400 Original-Received: from sonic313-9.consmr.mail.ne1.yahoo.com ([66.163.185.32]:40505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngyWQ-00049o-TL for emacs-devel@gnu.org; Tue, 19 Apr 2022 20:48:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650415721; bh=9nBB0N04YbP0wrYMlPyP4tevPst7m4T0Lf9u3XmmNtY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ugz/azOKrufKkCgSRw8gxJyz8qM6/TiSl7Ndzd8OUMtD866wY8jcEeAxIt35blS0CdHq8GpaKwnLGgtgqWKHgkxluybjAGzblbbVe6rolLZDKrSTVV70BxVIZqSMl4VQEFjAFwYmKJqqj+KzbaW7nWo561UypqZI08rLfe8zoIo0/9tUbRfbEmPOZFuM0sn3RTpKaFUUh1ZRwOpkZ0x/D1nnTfqZTF+nXi8O7Q6+bANOHr6jY1LzJxrIkAh0NxwOVQ9cKOipCcIA4BRABxk/MVTM6gk8fNzkFn6XhZo4S6jLnpZlcv+MlclJcpumMZva/dUisSV73fs9aA75qv7lyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650415721; bh=uKi9ZuYAs0lryM+LuZmmgC9LIg53fhuU2DuL0rvLmcC=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bB/fmUJPsSxueekvvzWrxKG5sezz2B27Dro9i1SRxs2Vpg68b6hIEGGlutcb+XvYUCjZgUy0vk7DKwm6rEtsJGXVNoVqLv7uMkx6KchWbRhTF8z3QG/zD7NbspU6+wgLKkGGSL4aSCwlfKoYyRcQJB238uI/zV6OdB0FjmIQ82VmhJP/3/R5iuxEibFuA4ySNypjs7YBhSEk2R2Gm7vQBvKn4vHh5bnfwcCzShbuwKI63dCKYSvvDXDfB/e+DSuP7lQwqPYygbB5rOEvfFNebL7oXyOBmT5Xc9JwtDFULwArU7wGMHBNueGSuA1ervmIXO3Yi+tEP430/rCh8OCagg== X-YMail-OSG: iR.n8IMVM1mjlIdkwDf.lOnSlpjTFFe7Rus_ByLrUJ7Y2CBya3px4EajYchJ6QL Ga8nZeK9ve9rdG43kT4LvYV_Xwrz.CZQjFTf78CA1lEDUzcMTp8Ar9X3qlxV87bCr7B3fz7lr0if 6QEQtDllSu74Jrr7DsCoEiYv77gX2LcCMzRYY4cAP0DpBubdb0Q9q9KrYQiYI_1tHvXqD_tWA7C6 aXaLxxf7wI1g_QcwVgKx91Wp9gytMQpBwuLfNlZcF.xRaZ0_V6n4OGG4ooRyxM0SS5wRjunr26CD 07S7PQ8S.fFD15E4UsgXWzQZI8AsBVTA8n.XBjd1Ra6Ne6ZCxprWEdcUTXhZyggKmWIT64qjfgPt _ptmydaL_tH_2OW46HT4iogAHSkmZpGdxHEhSKuDKLJNT1km9GiM4WJrED8CqBFKiCbNfUa84OZ3 jkcyRnJzxT34mlSuCAwvwm5VE2xa_a8XbMa.yrXQFM3klkdLh_9afI_vjxghnEAYDR1PieVtiz.d TDUBiO15NyQ57LvkfxEnOsqFxJEYnK.zahlE4j26LDHZs8Gskk9UuPIRPsAKkZEk6itUlS95eNwy j235pQ9ysQbZsKeHvHP5AcA8jZomcrDPcWFrivj.QlvjcPrgpNcTqi_jjwOfV.Qh8VH3dzR1zVkK vwQNwdRcj0VVG4_dNxO8uo60tHCT4KyIA1bBs.H4OHC8pahw5yxDZxNX9mW8nGxY95BzgMocWaGv DGj_Ww9PPddgASnAl7mpaxvdo8luawMGWqPHL5eA0Z4qsMOlTVIn_Q4M8ED6BcVgOULHbDpC25gb GRRv_mxBbbvHtLnSwqMM9QHHcUQOLTOIo5Qvaghxsw X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Wed, 20 Apr 2022 00:48:41 +0000 Original-Received: by hermes--canary-production-sg3-6589f79784-hgzmb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d1696e43971b65288666973d0703f8ad; Wed, 20 Apr 2022 00:48:36 +0000 (UTC) In-Reply-To: <87pmlcad91.fsf@treypeacock.com> (Trey Peacock's message of "Tue, 19 Apr 2022 23:02:08 +0000") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.32; envelope-from=luangruo@yahoo.com; helo=sonic313-9.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, RCVD_IN_MSPIKE_H2=-0.001, 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:288683 Archived-At: Trey Peacock writes: > It does not seem to be a requirement of GTK 3.2 or XKB to send virtual > modifiers. See https://docs.gtk.org/gdk3/flags.ModifierType.html, which says: Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped to Mod2 - Mod5, and indicates this by setting GDK_SUPER_MASK, GDK_HYPER_MASK or GDK_META_MASK in the state field of key events. > The only compositor I have come across that actually sends a virtual > modifier is mutter/GNOME. Neither wlroots nor Weston, the Wayland > reference implementation, send them. I'm unsure about Plasma, but I > believe this highlights an issue with the development of pgtk, if it > is meant to be targeted towards wayland users it should be tested > against more than just one compositor. I don't have any other compositor installed that I can actually start. Users, such as you, are supposed to do that part of the job. > The experience of a user updating Emacs and realizing a key is no longer > recognized, without any notification or justification would also be a > step backwards. That is the price you pay when using the development version of Emacs. The key wasn't intentionally disabled, so I cannot know those problems exist until users like you report them. Hopefully, those problems will no longer exist when Emacs 29.1 is released. > I have spoken with devs of wlroots & wayland over IRC and they seem to > agree that it is not necessary. I don't mean to be adversarial but would > be happy to see this change amended to incorporate the entirety of > wayland compositors. Wayland compositors do not send those virtual modifier masks. GDK is supposed to, and does it correctly when running on GNOME Shell, so the bug either lies in GTK or the other Wayland compositors.