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: PGTK-related misconceptions Date: Fri, 15 Apr 2022 10:29:28 +0800 Message-ID: <87lew7qdtj.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Morgan Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 15 04:31:15 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 1nfBju-0008Gw-Cz for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Apr 2022 04:31:14 +0200 Original-Received: from localhost ([::1]:51344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfBjt-0004L7-Ap for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 22:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfBiS-0003Us-QK for emacs-devel@gnu.org; Thu, 14 Apr 2022 22:29:44 -0400 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]:35262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfBiQ-0005xN-O8 for emacs-devel@gnu.org; Thu, 14 Apr 2022 22:29:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649989779; bh=EMski+wpvdk87xFnRx6iOWkFFkiuOfHKeWbnwCCLJqE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=BfF5Y3VN/tJQc0qvnhkMSM/btZRtkhNyjg27oApwuPXaEZKNelK1i87RNbNLsd/w+k+1Kgp09myBGTCfxhSmJoCMS0i8Mw2OSZSNGO5WvKLEBdmdqakXgFIJ6RxF9TCIG2ElmbKMACr/nD449UrsTwzmAZ04vJ6d40o+FUCGEg44BgB6sLK7DlbVo+bzyCusIUd6ruSW+0NJFF7JhlJTaym6f2FNozAuw468Cd98xDLMUVHVaWSZRCcJ2XNQmkZWTMLP72sg+S1yPau1DC83MKqgLwY5c2+f7GYMk9tIiNJkVyrumcF7SBCMwSQ7x9OpAsZVi0rIej40DBuMuH0XdA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649989779; bh=3+olGAp7v2PUkItskz/NRUpNTF9YbPXJbxXlz3yOE4H=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QedIUs2PBY7A0niBXRrvB6KavClQB6ptQKk120jHvGv2b/2I2eEHypBE7JKhQJp5LATHY4+tSke1io9hI+/QzDVNSs0VVe4Jenuq+9800yuzRSJKGX0Kkz3eSnIuK98MiPLKfxIooKMXbvlXfcmi45h0BqUgam285nNCrkQCp2Sje0KJaf34cUadYI2V0e/jmwNX5J3frkizHgJVg8gzhnTT8PURaHAjE6HsxLtz+9cZnwYRm8o60CDUHf9gNyo57FPMCT1w7JK8uJWUOmtMFeDT8xBm3kIsFQlfEH5YMQtwm2ODL1RKwrs14wZw/xy9ykfS5pabJfXaTbdmmJDmWQ== X-YMail-OSG: Dx5BuS4VM1n5RdVwskG504vYHlGmdYSy3RC4YpNHgWzKI4Q6f12f8ko68m8_1px 7XLzor..9YoXSOZiNqvb5nKpfEMZDkFXnYkShXdY0XPXuG2WZkAxmPcABeWLJR8rfzP.bnXUAzee SZzXySm7Lg1RdprZ1BkVOWmhSAdrmrZRiNfb5xmOvOO1mDtOvwitQOw.Tw2KKezmXHNx_q_4pzq2 .n2bwlsV2O5dXkurbyU9daE4GG1lQmnmru0mRisJz.yDYbxpV8fHddnvlRHv259OBDa53XZYjtBJ GuHaq3cBwdB0LI.3h81cB5SrXfItwLM_ORqu.M5EjVjIpG5KMnnRxZS_f2xvddYIeYEJixBAAMoz upFrzd.nVaJQ0GkPZHmFg2tWi78ywzOT2M_W6KQxsKpx5wbPoukO3MQSDQ7O45WBk7riybiabwAd ZTW4n4V4WrFHdOgRizfH4WVN_blwZAtAASLj2nv0vf0gX0IkX.M1.m4hJIi48l_R9RaNVG_4FcqO y2SHsM_o6kHaT05YMF37UYSATryGbsSRasAMLNKRSTyvxO56hQGc4a77VRNi.Ll1whhuc.3BdhuE MCDJ9.g65Td_OLiyI1MUQ4FjIJQHNQdj2GLCdKAEkvDJK8euyhSUjd8gZQELEEkSKEUH2Xgyr03_ Af14yMM6x00wzhiPcyFSiEHo93zz6bIma6Ildizu02n1VMudc9Ug_mqG181HyAOSsHC7q_pZAahm jscfBcPcnz0EFpm63oos67NOCs50hq4gg56g4MdVwmfLdTpsFLbslJxuKkDJQlDCARFau4AAl3Tm QQ0.GxumAymC8WcHQ_shdU8fubjnSfjzwe50qWZp8j X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Fri, 15 Apr 2022 02:29:39 +0000 Original-Received: by hermes--canary-production-sg3-cfddc4f9d-shft8 (VZM Hermes SMTP Server) with ESMTPA ID 9cd9623c1328cfa5fcab2afc74326730; Fri, 15 Apr 2022 02:29:32 +0000 (UTC) In-Reply-To: (Morgan Smith's message of "Thu, 14 Apr 2022 22:01:30 -0400") 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.186.146; envelope-from=luangruo@yahoo.com; helo=sonic302-20.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:288416 Archived-At: Morgan Smith writes: > I'd like to report that my super key stopped registering. I suspected > commit 1404e16975 caused it so I did a quick `git revert 1404e16975` > ontop of 807682de1e and that fixed it. Crystal ball says you are using X Windows, and have to put remove mod4 = Hyper_L in your ~/.Xmodmap file, because GTK doesn't try as hard as regular X11 Emacs to work around the common kind of virtual modifier misconfiguration. People using X should _never_ use PGTK. The regular X build does a much better job at supporting that than PGTK ever will. It is completely pointless to put up with half-working child frames, random keyboard-related lossage, random frame placement/resizing failures, so the actual fix is to delete `--with-pgtk' from your calls to configure. Similarly, people building packages with PGTK enabled that are labeled "enhanced" are doing their users a disservice. No packager should enable PGTK by default, and every package should ideally come with a big disclaimer warning against using PGTK on window systems otherwise supported by Emacs, since time and experience shows that Emacs generally does a much better job at their support than GTK. Many people are also being mislead by articles on the internet claiming that PGTK leads to faster redisplay, such as this one: http://www.cesarolea.com/posts/emacs-native-compile That is not true, since regular Emacs with cairo uses more-or-less the same rendering path as PGTK, except when PGTK runs on Wayland, where it uses software rendering and does image compositing in software, and is thus slower than everything else. Scrolling on PGTK is also not as efficient as XCopyArea requests. But the difference in speed even on Wayland is negligible, not easy to benchmark, and not at all visible to the human eye.