From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#50993: 29.0.50; Problems when dragging the mouse over the toolbar Date: Mon, 11 Oct 2021 18:29:06 +0200 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50993@debbugs.gnu.org, Stefan Monnier To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 18:30:20 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 1mZyBv-0006OK-U7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 18:30:19 +0200 Original-Received: from localhost ([::1]:57930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZyBt-0007Y9-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 12:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZyBe-0007WK-Rm for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 12:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZyBe-00089B-Hk for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZyBe-0005r0-83 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 16:30:02 +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.163396976322429 (code B ref 50993); Mon, 11 Oct 2021 16:30:02 +0000 Original-Received: (at 50993) by debbugs.gnu.org; 11 Oct 2021 16:29:23 +0000 Original-Received: from localhost ([127.0.0.1]:60773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZyB1-0005ph-1o for submit@debbugs.gnu.org; Mon, 11 Oct 2021 12:29:23 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:34381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZyAy-0005pT-WA for 50993@debbugs.gnu.org; Mon, 11 Oct 2021 12:29:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1633969748; bh=fyFWoj88ZuKO3CT3tCGbsVaw3HMrR615ie3/xnMtYV4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=WclqYb3iMRO4yUYBaK8LWy/5cwaKR8Iv/THISreNO/5HWtyOXAw/Ga7EkARwPlMCo fGcG2J6YzZoSYHx0kie+RYjIcn1pAcVwTj04AeQt7T+p/2a0Czc+PeXCVYu6Ko+mj9 N++ZufllwwuAkvgpsrrms7BVPyD88YIUghbbMjNQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.147]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwwZd-1mz5Qt2DqV-00yMUr; Mon, 11 Oct 2021 18:29:08 +0200 In-Reply-To: <878ryzafqk.fsf@yahoo.com> Content-Language: en-US X-Provags-ID: V03:K1:aQE3lv08ST9oYhTMc+Y/PfSxaZZokvP8hYadkt+vIGTtnNj56hO ttpwQCeIf90rxBxEi83hajM5tXpDA9QiymDrGKrIjJ2Hubw+RCiJ4ZNAZCpw9hoOGqF3rKw 5ipBTxNXjl1eUoM13fpmgADM3G5sBuwmGRqzT8vxrt3lvzVrlF11JrQI6N8SpXnCWSj/GB/ zJ4We04xVsyLmdF4zgyWQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Zxk59+Y/exo=:9wEKsHXvKEl3hEHteheYg5 7uD8vlpVUqQJLLZA3SlE8PxhOgkKn15X9Y+DHSEdz5iUv/KPAddZHsB1hCoHcOGWhPBSsRcYK SQojpSevYRgPwEM6B8w6OsXwrwPPaZSaxOssD5DKr3hXhmw8i/McmYW1Vp+JPAD7sECtpE565 m8uswW1O/1jgNdmpIyJSktDJyB617H0BZkylXyV1Lpp05nlE3unKGC4JstI+qlEL0vxVpMj1v fJGmk3DVDV5DsqI7YzJEWHrvWYrTZWoP9ypONUb9La2T4sljIpYZFap/6V5N2OVOJLy8+TbW4 /IZxEfV4S3wTyZXJn6RKgRiVjYaDm7J0+jUhJhEfp6LhJ58q3RRmBWnVLvsVVtNrUJmoRqDOr FYnFt3t7n2vRJwXXD/Rzoy5ouBxvhS4ZL/kNUQvcKSr2nKnYHYkYBgijS8z2ivKQzMHdFQh0L RdKMLwLjTH8rjFqVPsAROhXtD8OMwgK4VyZaR6HILOA+6rzFpJNgAmrQQKFVTAbYY0H8Ffouu 37BpqToSoTLn0ZBtCRmeYI1YnrwNmm7uDf7dMM3kDARWqrlk4ms5rEqACaokXW4F7AVSnn1ou fakVy9xCA8artyvkhY/oLP6huBo5V1mBjewUla8jWfY9jc8rtzMwhrAADsqI29oHo8f9XMhZT rBq9EWchdvMiAPG7V6W7R6j9bj5/RCcB1pZfslpb6D9zpxNw/Le3042d5Wm2iH3hZK4EFoUQN +mAsT57XmxhosH1yx5cYg3BPVhZuz2mLy63OLGR8mKdrmZZnOlv2jx4UTKo7+bQZhfVR5+Fh 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:216942 Archived-At: > Thanks, with your explanation it does seem to work now, but if the mouse > is released over the toolbar then it seems to never stop tracking the > mouse, unless I click it again. 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