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, 27 Jul 2022 17:10:09 +0800 Message-ID: <87o7xaudji.fsf@yahoo.com> References: <87y202f4dq.fsf@treypeacock.com> <87o80xhor2.fsf@yahoo.com> <877d7lrbta.fsf@treypeacock.com> <87czdszy2r.fsf@akirakyle.com> <875yjkzkuc.fsf@yahoo.com> <87fsino7gd.fsf@akirakyle.com> <87lesfuv89.fsf@yahoo.com> <87bktbdkdw.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="31902"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Akira Kyle , 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 Jul 27 11:12:53 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 1oGd65-00084a-6a for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 11:12:53 +0200 Original-Received: from localhost ([::1]:34256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGd64-0007Sa-5J for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 05:12:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGd3i-00062M-2c for emacs-devel@gnu.org; Wed, 27 Jul 2022 05:10:26 -0400 Original-Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:41680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGd3f-0000EE-AP for emacs-devel@gnu.org; Wed, 27 Jul 2022 05:10:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658913022; bh=RxdfHD0B9oZUEvEhDfZLOZRH90XhVFWRWso5mnlQObc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=KU7S6MgAc13NXMkCGNFVebvOe3icl1H5g87birWQpIoTWjHrxEQ1x1wneqJLSQp/FNpq3BVZUwUxPjf5IL310x/ZjSMbDhD3KJEGB/I4EdPlTm5NtZS/8f4yUcyu9HLc7IJF3FY5G0EeQ3f0H/L+oZrJC6Eex+4TPn6Q2EVqxXGyoU3gjizJmxnSCr5FkzpwClqY8PpEGVuof6H6eoejc3aNjB7mXFv0oggwu76TxcTeUnpTauZKiUL+ckkGJrTL6bNlrHstGev8T8S4G/JHr4JYZrk6e35jI/X46M5nogdcv3MApNThCLd7XFrdJF/3WZ9UDL1DDzXkCBKoyJw7Lg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658913022; bh=7pQ4Gdqiu4ojWc8nV0aMf0fie594KiSSTttrCaUd5ou=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QF7sf1SvS4P4z8G2t3mTRxR9LNrXA0jaiPJVlQ+rne4tCRJAdzRoz1nljO+X4GOJghqyFGyHG5opiMtnshSG1lp4cb11HMZEAbsgRnfS/Oz2cfDxo3q9sM0sSRbjc3mfAndSEjoZ7pRQZaBa5AlLXrnHYeTCtv2JeGBoEl3/ITAb7kmgK2ZjEY9m9mhsYfM8yGCsC/BCNoLpLXOAY96jEscA+U9rMEVPdklML6VqyYb1Jzz1LXWk7To88T7e2TfxQcxzuWTXcsQCmkaIFxigdg5A0WTy9EF7CCNc0Kv4tTFFrtO5wLIlYkmstl/EgVzmfF+UX5rijwo7Hd1V33Uz9A== X-YMail-OSG: G5UFFIoVM1nddaayHIDPxDBygDmmye_DrYD3geB1rERMygt0pgS4B6wL52UaaaM jkQxpidgTfGJdrkOCTkBJN8.86PsrsuHtQSSECvOXRe0OgcPmraFXLMi40yWsyMlOsSxwI.rZmP2 AuEud8Q_IYyaV2OVTKNVH2Z53.yV2u6wBR_klKDZ.QezvypYHlhOIUR1P9WR.UOMZPjNZi5DvEPo 7FZbNdahWzKo_ByjONb5T1wl7d582MK7hF0oXqAtMjsUYF5GfJuwKLcrBA2SujiTzCAb4zhKVU9_ byo7pEAyq62in_YKVZ9SNxm2SbNSZstLuRgykzP0.UrqjE4qpZUq9Dw5kblyoYhNANDDcLghfji2 632bxL1kEJvYNaUhDBKniTQlkm.onyPdSWHPuaphQq6qlg7OYlvh1FfuaCCKZS3AxdKzor37MsqC H80fLpHJi6DnPXnni_Gu4zcX1Z5fQFNlFCGLJY9ShxnD0lUadj718B9ut3yXHT6wHudiaIwYxmss Dt2WcKGbqkfMAkZIqEVYSbuBw9QFLssin_bfOsTIOCcLUXGtr31P_wJVO4TZVD.VdIiuB5vuNg1o SMwhPnfafDZYUeU1Oge2k2wjRMwJxUsrtVBWuG2YbDNk7RXlVbD.2QXCa7H5wxS_KNF8V_1ZFhbu 7LzlguYrH3rroJzLUylMUlnnaD5mNH.WyCOj1oNqZ0rPc7h9GhT0fIxX_SJqks5Ynwjw5QKoXx0m CIBMnyWWUVE2McE.ufoUls5LKAmt53_vgub2Sp03UaQzK5pBmB.QVY_rAme4TgS3VJudtywtnm2f SdkHYg8xWnc0KU.8eiIiZuNbBMxV.rrdr2kklRTPiU X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Wed, 27 Jul 2022 09:10:22 +0000 Original-Received: by hermes--canary-production-sg3-854c886654-8kdzs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0b3e708e1ffce9371a25030a448207c2; Wed, 27 Jul 2022 09:10:15 +0000 (UTC) In-Reply-To: <87bktbdkdw.fsf@treypeacock.com> (Trey Peacock's message of "Wed, 27 Jul 2022 08:34:27 +0000") 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.204; envelope-from=luangruo@yahoo.com; helo=sonic312-23.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:292736 Archived-At: Trey Peacock writes: > This section of code is in gdkkeys-x11.c and called from update_keymaps: > > mask = 0; > for (j = 0; j < keymap_x11->keysyms_per_keycode; j++) > { > if (syms[j] == GDK_KEY_Meta_L || > syms[j] == GDK_KEY_Meta_R) > mask |= GDK_META_MASK; > else if (syms[j] == GDK_KEY_Hyper_L || > syms[j] == GDK_KEY_Hyper_R) > mask |= GDK_HYPER_MASK; > else if (syms[j] == GDK_KEY_Super_L || > syms[j] == GDK_KEY_Super_R) > mask |= GDK_SUPER_MASK; > } > > Which seems like it accepts the GDK_KEY_Super_L/R and subsequently sets > the mask, right? I believe this is the reason why the virtual mask is > recognized when using Xwayland on wlroots based compositors. Why is Xwayland related in any way? And that code is only used when the XKB extension is _NOT_ present on the X server. Otherwise, the code under update_modmap is used. The exact analog in Emacs is x_find_modifier_meanings in xterm.c.