From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59351: 29.0.50; [PATCH] Fix mouse click position to menu bar entry Date: Fri, 18 Nov 2022 18:43:06 +0800 Message-ID: <878rk8ee6d.fsf@yahoo.com> References: <87tu2wlku7.fsf@elite.giraud> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21626"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59351@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 18 11:44:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ovyr1-0005PL-Q8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 11:44:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovyqr-0006hd-Az; Fri, 18 Nov 2022 05:44:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovyqp-0006hG-2k for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 05:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovyqo-0002sR-Ov for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 05:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovyqo-0000ZW-FN for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 05:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59351 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59351-submit@debbugs.gnu.org id=B59351.16687682102146 (code B ref 59351); Fri, 18 Nov 2022 10:44:02 +0000 Original-Received: (at 59351) by debbugs.gnu.org; 18 Nov 2022 10:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:35370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovyqI-0000YY-8M for submit@debbugs.gnu.org; Fri, 18 Nov 2022 05:43:30 -0500 Original-Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:41645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovyqE-0000YF-NB for 59351@debbugs.gnu.org; Fri, 18 Nov 2022 05:43:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668768198; bh=iqFH/CCuLnGHqrJ9azj6byzJJNCi+9P9vt+4TfOR+Y8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=braq/h9UQW48JGrk/9hldrIcrNcPzaCK7FkEjfiGgS789FBJ0cKkHdf3HGHQiUsk18wQsVWesZiYiDvRegvv8fpU1RxbbuYHqhpsv4bR/AfiJRGcZF7vKHYlYLX6Sm9C8028V48lmqF+KbW6vYwNG0iBkmSz4+qAmOvPwJML1rlwH8Y1BMTgqjz8eUazWzKlouymKgVjPtcEVN044vSmqYVeEiSsak+hrrG641yn4/23MPw9SI+V5i0ztqu8fvsj/WT+w6LySpugYMtUA5DeqKoSCtAYJrmPtbcASB9Kk+6bs5mUq3/2s//199wVAK2Lbm0MXT1P7upU1QrOlER5BQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668768198; bh=EyiQdOIqzWdbRQPKzHRV3rmVRHYYfV0DHnYi8HodINB=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=dX7gwDKfS0DlCfFbAvOOkA/nXD7QI4y2JHBv/QQdkN3pmer/y6eg1x1gOCxg2SGJp+TQ2u+yjJDZchJ6MPoRWGGb9RqaWtOHrlA8WeQBYER4SOAGswLJB+S0brFR9X+Wxygd/OxRuApdq9y4qVGwjG2G32yVkxVY3SsSiHcGMQ5bebQqdxch/JcTfsIAcFeQGPzMsCz37C92aNz/Q+ioIYgeL9fPjRbeL161JfUOOS7AYy+ZjkPxuzkbQzBjGnpu1QiJGPY9ZgE8jGcB9A0m1oQQuHUWyGjlrtJGpus+XHVvXS+NiG3ygqF6/4F5o7ZAzOrKAxHGCrSnQTN9/unC6w== X-YMail-OSG: PArtp1kVM1lDmcQLMbHdTuBncKK0E2cb.pIA7paraL.mwGD6nk.EVVJDURGA1KD TeEk2IXIVQJqZPdRJVxINfXttPaxrMC7bbRxlskssb_E0YzqI.Y.TrI6fXWrTd92C5SnxBsQ4114 gF36ag9V7ICYja6vxQTaenwwkHcoOsskZRre1RuIs9s5xYbfFanAI0RebSrUeuGOb7Y1P_bN1kru lKA_iwpynHKP5QgxWN6EuwL.IeJ09gIfp.1bUCStE2liUQdgEx8lZojmh6XN5kv.kz3i08gs3bJh Dw64iJHT5ETihL3Eky2RpfK_DZP6AL0D5QYmLtJcs.3aD5CzV_pvMO0Kun.uSZaNKl_pHaKtqVHP IulakH8qKtiyQ6UEUfcnJGBZ7SoAXupFvcqf0oeNAUev4O7iWbyX9Qh1tLAQqHaXwTlJjped_GVj 6HV4cgGknG1VhhGSdpG.46F8Mvm2PveUuE7X3JQsA0iz9GQRz1s3wJ2NVj2anfhUSNECuflpxXom 8r.iefJdBDMoxenakgDvBKRO2P1SzKTXtELbh2Noa6LrAhvT59isHSoNJUfm4Mqli6V9nHTPuO5j gPf9W.zWp8lAZbhrkDZnU9ORxkSyFmY9Ha6_JiR_g36eEKa4s.08FQznsKpHWir9HYWdvo29voRV q.RD22CFJHg.vAxuiI9m7JTkHcERR7plh7aFtmqw56mODw13LKIjE3Ctp3cs9Q.ynID4x8TA2wIt GGNiV20R1CzLF.xYHImvKQr0OpWCyXmNVu9bV3WmCP0sfAODm5eG0NiGveAPk5F4eM_9apFoPd.P vUSiiyDwb79mDKn3K9G.3p4RB9LdEQuyve9I8Uw_qu X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Fri, 18 Nov 2022 10:43:18 +0000 Original-Received: by hermes--production-sg3-6c8895b545-pb7wm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d5972b6be32e6436fb0f1fc44b6543ca; Fri, 18 Nov 2022 10:43:12 +0000 (UTC) In-Reply-To: <87tu2wlku7.fsf@elite.giraud> (Manuel Giraud's message of "Fri, 18 Nov 2022 09:37:20 +0100") X-Mailer: WebService/1.1.20863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248197 Archived-At: Manuel Giraud writes: > Hi, > > So here is a patch that I think fixes the calculation of the menu bar > entry to activate from the mouse click in menu bar with the no toolkit > build. > > Issue: Before this patch, if you change the font of the menu face (for > instance with (set-face-font 'menu "SomeOtherFontOfDifferentSize")), a > click in the menu bar won't activate the correct entry. > > What is not in this patch: The height of the menu bar is not > recalculated correctly. Judging by the contents of the patch, you sent the wrong one. :(