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#50993: 29.0.50; Problems when dragging the mouse over the toolbar Date: Tue, 12 Oct 2021 08:09:49 +0800 Message-ID: <87wnmj85o2.fsf@yahoo.com> References: <87r1d2b9e2.fsf.ref@yahoo.com> <87r1d2b9e2.fsf@yahoo.com> <83y270rd4j.fsf@gnu.org> <83lf30r8eq.fsf@gnu.org> <877dekcsc1.fsf@yahoo.com> <87ily4aur8.fsf@yahoo.com> <44097514-26fb-fe2f-fb82-cfb819f13d2a@gmx.at> <87k0ijalp8.fsf@yahoo.com> <878ryzafqk.fsf@yahoo.com> 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="7444"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , 50993@debbugs.gnu.org, Stefan Monnier To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 02:11:25 2021 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 1ma5O7-0001eb-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 02:11:23 +0200 Original-Received: from localhost ([::1]:41168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ma5O4-0004bU-Rr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 20:11:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ma5Nm-0004bG-F8 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 20:11:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ma5Nm-0003jq-16 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 20:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ma5Nl-0007H8-OC for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 20:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 00:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50993 X-GNU-PR-Package: emacs Original-Received: via spool by 50993-submit@debbugs.gnu.org id=B50993.163399740627889 (code B ref 50993); Tue, 12 Oct 2021 00:11:01 +0000 Original-Received: (at 50993) by debbugs.gnu.org; 12 Oct 2021 00:10:06 +0000 Original-Received: from localhost ([127.0.0.1]:33017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma5Mr-0007Fk-Oq for submit@debbugs.gnu.org; Mon, 11 Oct 2021 20:10:06 -0400 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:46670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma5Mq-0007F9-52 for 50993@debbugs.gnu.org; Mon, 11 Oct 2021 20:10:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1633997398; bh=TXNax8qQNr079DFYwNJ4sLLoEDeMmUGCuZwFqfKBhCY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=O0aqtxdZksuHtVKAxslAS4UH7mVCn6OQmwYJCjopbReTKJp8EyH4MihPF7aLm2L4259fmT3InqHgZfxRhK3TrUTThbdzfMe1FX7XeoRNMkJgCVFVkdEjKFvdK0NMQ1ky7tq5dTcDwiErFFp5DYCGLqxYchJUxsFhtH1pNI93jbUIQAGPCZdmtMYv9LLT+Pwgc+llcQ26pl8SZ1I3HNKeGz39qZvK8KvjfmqN4ddYTTlhc/UKn35oqKDxrkByYGt+JdS8eCAj6N0NpC6JBc6VLlKF3UW+aUUZPizRLqSZFuNCHfCg6JR31fKAKapNICVWnd4AXwrbo0JG6+jxOLPqpQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1633997398; bh=fdkZRPr5pd61byAKARvTWCOh+qS33BYrRrLM6FGJlW5=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=g8rpoOqz7g2Z8a2oc/wpOeVU0pQr5672u4h4d/rtEEid5WIl0Azf/AZc3UuhvvL2AG3AgY1fxVopiBTMNydJQalszZju39oVtHcOkBb52ib3hsm7FnYCzBYkAIRaBTQctaF7QxK2N5D4zLMWf9jgHVz+zcH9Vr1YmYpuq3JE/4ocQjZR+lzYfMTf4LvkMmPDdBeWv9IXGIogJJVrzXdtvRCY4y6ozBZlB0HacC1JfKv5q5M7C7eB2p4v4RVHwSdtv2pndHaMWVLS61AizYgDGP+WnI29fDbIDZdOMuub8OVM7V7tI7a6izDQMrl8BkMV8mTNdP6fT5tOq5fxgDdETQ== X-YMail-OSG: lnDnI.0VM1niP_yOqxb.bVqIv58bH9aG6mo44wisWjUtRoq4zYI.sm3t7GW4svc v1RRIiig8uerqqiO4yYSByNgPSe8JhjbYxxn73U6I1a8Nv5gxF4xFGLBx6.j1712mLSsbXV2JoUB nJ8..lxB7tSK69jRIlaJmyNOooX_oMgd6jvuUY7jWZtD_KrxhZcySDGDKm00WxLxs9.WEFt2rIqX gu.RAeM7Tff7g8pG1_H2ZAYb1QbLkjcURJm7vXKWG2JmO_8qwTtD2SNeiKujy6pLSvmb7Ha9tjjF jNEVbh.42VabioiuPl.8f268xduoeAZAd0OE46v1RC8UoP.KmG6s4gG2YaSM3WzOuR.rwP7AINJo BQUhgE9g9dq2Knmc62EFNNsW2Uzj4NF.LwzyDJBsuMrekjy8obGO.m8IeMT25H3jruxIGN256aac SGnuoOpIcklVDLeg8jIA178L6YMLSW088FzEUlm_QVH0xmZl_Z6Ecv3b7zTXkFYiSluMVdLRPvtR 3A6sNaCocjIIyhopYzvqlYbdZC8ZkROsWaVe1VWAcAFKrlZcdLZD7iBOXaKHX7AhFHifP5WYGmYI TmLB2jTSU7C.jriF8_tWcvD0XDGD3iLOq1nI7SfBzoF1m.Qb4NpSfRVkeQnWdmMsLCatQvYo1Q.T aGao.A1DY2rH_p7_n3V0HQdAcKg90uV0VgRrUrvamkQ43XFWI4v1g4p4Rm6lfmOhIq4C8fnQzkHW NWdvtG9jk_A6P_UKj9Rl_62sBF0AF32JZQDp1UNEgKg_XFUqO3424xnEg.nYQIbRTpRIAXGr0QJ. SZ8ablg3xn8tWYMBRAS2BCiNvn.EIpBHvVK8YzQ.Y6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Tue, 12 Oct 2021 00:09:58 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9b7093009446225b61a58640c94e8d5c; Tue, 12 Oct 2021 00:09:52 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Mon, 11 Oct 2021 18:29:06 +0200") X-Mailer: WebService/1.1.19116 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" Xref: news.gmane.io gmane.emacs.bugs:216975 Archived-At: martin rudalics writes: > Maybe, I didn't check. How about brute force like the below? > > martin > > diff --git a/src/keyboard.c b/src/keyboard.c > index bc6f97586d..ba625c4f77 100644 > --- a/src/keyboard.c > +++ b/src/keyboard.c > @@ -5122,7 +5122,8 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y, > #endif > ) > { > - posn = EQ (window_or_frame, f->tab_bar_window) ? Qtab_bar : Qtool_bar; > + if (NILP (track_mouse)) > + posn = EQ (window_or_frame, f->tab_bar_window) ? Qtab_bar : Qtool_bar; > /* Kludge alert: for mouse events on the tab bar and tool bar, > keyboard.c wants the frame, not the special-purpose window > we use to display those, and it wants frame-relative This seems to work.