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 21:24:58 +0800 Message-ID: <87k03scs45.fsf@yahoo.com> References: <87tu2wlku7.fsf@elite.giraud> <878rk8ee6d.fsf@yahoo.com> <8735agr0g4.fsf@elite.giraud> <874juwebfr.fsf@yahoo.com> <87pmdkwjj4.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="36477"; 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 14:26:22 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 1ow1Nu-0009Eq-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 14:26:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow1Nd-0003Rt-98; Fri, 18 Nov 2022 08:26: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 1ow1Na-0003Ra-TN for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 08:26:02 -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 1ow1Na-0000MY-Kv for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 08:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow1Na-0003O4-Ge for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 08:26: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 13:26: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.166877792412963 (code B ref 59351); Fri, 18 Nov 2022 13:26:02 +0000 Original-Received: (at 59351) by debbugs.gnu.org; 18 Nov 2022 13:25:24 +0000 Original-Received: from localhost ([127.0.0.1]:35784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1My-0003N0-Ar for submit@debbugs.gnu.org; Fri, 18 Nov 2022 08:25:24 -0500 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]:33250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1Ms-0003MU-8L for 59351@debbugs.gnu.org; Fri, 18 Nov 2022 08:25:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668777910; bh=ZkJNmbUAvNSJGQlUXi9xwR8WwaR0tpDtIfALsHNCTiY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=GhE/OIpoLSaTCadN8xwChnkGI0V1L+CxryBscXDn4f349yEm+3399Y8rmE0Q84Nj42Aw+JzSlDG3GgBFaIzFnM1C27LGlnVhiVp18BSJyQPq6WU7PaTmsXQ+/Zmv/Bo1JXDKCKkiWEViLWFK/bTeCq4PX339/3IUD+/1Z9ATs4+SpsiV9C6m6hX6tBCtqqduZr7NtewrkMJwESUKLhA/OnpdHHjXRybjt0Lxww99BqzzFboL2AYSvucJJAFBfYFFX7zCgQqIaqMFfOGBSaeC2AgMQKcs5zPyW4aj/QabWMtIFFs2BNMymdDP9SZxhx4lugeUJ9xe0ZVByprjZlq7AQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668777911; bh=tXCsDwYusRUsB9yMGSzGGiOF0Ww/YDvoRuydh5+FrrV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nw+6yuK3arCS3GfSAZNXJiVjZthG7WSlB7H3rjSch5gsf+JVdFYx7dwZHVfNAC5GA28WK+f6LxNfHzoMJUf+RyHW0Tiky0YaeMLPp+nFwsvGgboZyrHg0pMYOl3cpBOym/7+k0Dgr/46QIlJPLdH9mJTu7pV10LP4ZrdcMlambzE9m3UXDaxBCofbx1MxSD9fSylFrrQCbfhBCADI9lE6HHn1pCvfQDzYSpLKRN16soA3kImHoaD3WvbHZvneiyfsXsSvxethF6SOstI/7/C6J7UrXdPY4yZ8kDkq5M7wiDUep8/hj9XHKrzYwv+emuo/yQ51Ss5MtIx2xKpGO8u8g== X-YMail-OSG: E7k_tPAVM1kN.yYs_qpZC9IuRzfV9We5dfTs7xElJrdWDjkPjYPH6fjm.irlZXl HPKDN5NmzdLKr9RSTg5ClrhGktYFoLYgPWMGy_u6.GhVVySd4crrJsThM0YNItLOoBy1TO2EAuRe 0tRPZToeoA1NI6p_yygZxgLac6AHIUlU2qHYqntxeehYl96xdzfhdNEa0x6TwuPhqv9TMUtm1cbg rOy7SOSz7cAEHJog0.IqSr8BH4BEZHsBFPIBF9ko5b.sayfa7xEhu686oUWx7XRVdQnvRr77TWoR NTgWFQ1xBggi8SqhwIqzuYdxkDeluOxdtzPIa1sri7975tYGkwtgCOm9nM5ew9TQfGMc.dB3jGhD q_Mjh3R.Rms1h12FQPTQraV.FP7rPwLFSSEvkkN99KoMDTMCdfUzDBjAkwdhV9END4TcXbu5uz_j gvkRsutb_B83UwWuMZR8TGaHWsDAhNhXiT2zXZV1j24LF3HnFsrsW3WNuOtzRxLvz2uKam9XEITM TDxTrq1ZyEtjiNvGh4i2Up7VA.ljI6GFjoKmM2_S6vbuziM02.qMxP1nMZvH_XkaACJ.wX5f034e hOJh0L_jzZjV.3KlUvPFBkV7NIBukOkXKPvBoVCqbUCVPiO97Qeq_vYyguJynzIhTTFtAJ1jh7ji rRCRaOMzRipYDBAGWiobguAxwhgWPJjEDl.DZaeUke7EjJ1AWN7br1CRsCTA6JYOJ84ZLG.Pq9zs z9liiOvVcICOMC8dWPg9Mn_5TDneY.oISI.JausUIxeD1i4e1lxt4ehSTIhgq68JVx7B.fyCWRoO r2fA1YjlYTSfgZjK.Wc26.JLvjHsTOl5zdYS7bLdTu X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Fri, 18 Nov 2022 13:25:10 +0000 Original-Received: by hermes--production-sg3-6c8895b545-mnqst (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d2e46655db7dcee4ea042ec29ae86870; Fri, 18 Nov 2022 13:25:04 +0000 (UTC) In-Reply-To: <87pmdkwjj4.fsf@elite.giraud> (Manuel Giraud's message of "Fri, 18 Nov 2022 13:10:07 +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:248235 Archived-At: Manuel Giraud writes: > I don't know. Maybe in some distant future, menu bar will be anywhere > :-) It also helps with the previous comment about event position being > relative to frame because here we are converting in f->menu_bar_window. If so, then why not stay safe and use the FRAME_TO_WINDOW_PIXEL_ macros to convert the coordinates to that of the menu bar window?