From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mark Kennedy Newsgroups: gmane.emacs.bugs Subject: bug#51794: 29.0.50; invalid input events generated from a mouse click for the tab bar Date: Thu, 18 Nov 2021 18:39:23 -0500 Message-ID: References: <83tuggy14y.fsf@gnu.org> <83h7cgxjbm.fsf@gnu.org> <83fss0xgn9.fsf@gnu.org> <835yswxedz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51794@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 00:40:14 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 1mnr0o-0005rv-JI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 00:40:14 +0100 Original-Received: from localhost ([::1]:33336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnr0n-0001va-7q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 18:40:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnr0c-0001vN-Ha for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 18:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnr0c-0005CV-8t for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 18:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnr0c-0002X1-64 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 18:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Kennedy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 23:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51794 X-GNU-PR-Package: emacs Original-Received: via spool by 51794-submit@debbugs.gnu.org id=B51794.16372787829690 (code B ref 51794); Thu, 18 Nov 2021 23:40:02 +0000 Original-Received: (at 51794) by debbugs.gnu.org; 18 Nov 2021 23:39:42 +0000 Original-Received: from localhost ([127.0.0.1]:37402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnr0H-0002WD-Sl for submit@debbugs.gnu.org; Thu, 18 Nov 2021 18:39:42 -0500 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:39520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnr0G-0002Vw-61 for 51794@debbugs.gnu.org; Thu, 18 Nov 2021 18:39:40 -0500 Original-Received: by mail-oi1-f178.google.com with SMTP id bf8so17942108oib.6 for <51794@debbugs.gnu.org>; Thu, 18 Nov 2021 15:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3XyCUrmog/LM/2wJSqdtbDk9GK63AicIJQjQZrd0p/s=; b=jDXFGcsqW4pycN4AwvUaC9G4DbXvMiGq1/4TJH2PtYxEkv3dcs1HoeDqIHZyyiCRAX blzMCAt8rD42KHVFI3x4MlN29WN+qaQtOBT+9Zng0Jc7qOeU3clgdPXelTe1osEgDK1s vI6V4iIzp9VvZK1ILPFDwnatq3r+IhPB3z32mI20d8uggVxM/nSQiBEuLa/A9PmytakL w1FE83k1tCzUSYyu16GBv39EiXlIDKB4eWoUBMVMWG9t+OsiBe2WkFUvO1WNq2ml8CSI Eu6YMeVC30usksIlO2W96Vx06t/ZR7c4BcxklWqCgZx1g6vb2j6BU4X9JJvTjHZ8ktfm QlCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3XyCUrmog/LM/2wJSqdtbDk9GK63AicIJQjQZrd0p/s=; b=o9/UO/yVnLGnJKOsxPy5+zVuZsRFiBBnowzii1kJtMdCjjmAXnZWdtPllMnjUuriFR 0sQ2Gfk6ZuA3nk1n2Tvubo27PuLk7feT7TmseInnyVBqlIdY4NtMO8lazDRSKV1dgRek izKIwMs4gXsXWvV78RG1wFyZX/U2k/4otKBH4KjSNyB34HyRgK7Jabx1Oe1gWDcvyFRF gPJY9poUhTmCrNOyEbAehkbk4ABMkh6AryKDeWP5JtKqXVvE4NXo5cjhKSGRo/8GhkFq l4qrqRP6bdDZrGYd5eQms/1yuvht0xdFNFr6upM+F1V+M2W2cKSrqiAA7gPbCjyTrjwq REtQ== X-Gm-Message-State: AOAM530myHrUC6rx7nrlb1plFSF/j1OfYf1ip7QgzwvfqeFjyH7WmXrr Ym3kROpdrU/of4RTY692mqEkSx0PpcQtuz/QydM= X-Google-Smtp-Source: ABdhPJzq+bHVzpZRh79YeJTwfVQZ1TP+4KuULmNwTgztBbta/zr593phhaFnZMVdq4lqjnSd2/LG2yOICAVVY92weEI= X-Received: by 2002:a05:6808:2081:: with SMTP id s1mr884861oiw.170.1637278774236; Thu, 18 Nov 2021 15:39:34 -0800 (PST) In-Reply-To: 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:220352 Archived-At: bug fix #50993 is the bug. it made make_lispy_position skip setting posn to the tab_bar if track_mouse is non-nil. why track_mouse is nil for some frames and not for others i didn't look into. thoughts/comments? /mark On Sat, Nov 13, 2021 at 10:43 AM Mark Kennedy wrote: > > Thanks, I'll check it out. > > On Sat, Nov 13, 2021, 10:30 AM Eli Zaretskii wrote: >> >> > From: Mark Kennedy >> > Date: Sat, 13 Nov 2021 09:52:21 -0500 >> > Cc: 51794@debbugs.gnu.org >> > >> > i'm willing to attempt to debug it myself but not via the -Q route. i >> > prefer to focus on where the bad input event stream is being created. >> > any suggestions about where to put an elisp or C breakpoint to go >> > after this? >> >> In keyboard.c, under "case MOUSE_CLICK_EVENT:", step through the >> code until you get to this line: >> >> position = make_lispy_position (f, event->x, event->y, >> event->timestamp); >> >> then step into make_lispy_position, and see what it produces. >> >> (I hope I got the code right; apologies if not.)