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: Sat, 13 Nov 2021 10:43:39 -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: multipart/alternative; boundary="000000000000487adc05d0ad716e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21953"; 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 Sat Nov 13 16:45:29 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 1mlvDd-0005WO-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Nov 2021 16:45:29 +0100 Original-Received: from localhost ([::1]:42186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlvDb-0003HD-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Nov 2021 10:45:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlvDB-0003Gq-W1 for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 10:45:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlvDB-0003w2-MX for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 10:45:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlvDB-0000dm-IO for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 10:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Kennedy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2021 15:45:01 +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.16368182422375 (code B ref 51794); Sat, 13 Nov 2021 15:45:01 +0000 Original-Received: (at 51794) by debbugs.gnu.org; 13 Nov 2021 15:44:02 +0000 Original-Received: from localhost ([127.0.0.1]:47939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlvCE-0000cF-9i for submit@debbugs.gnu.org; Sat, 13 Nov 2021 10:44:02 -0500 Original-Received: from mail-ot1-f45.google.com ([209.85.210.45]:40544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlvCA-0000bZ-99 for 51794@debbugs.gnu.org; Sat, 13 Nov 2021 10:44:00 -0500 Original-Received: by mail-ot1-f45.google.com with SMTP id v15-20020a9d604f000000b0056cdb373b82so10942338otj.7 for <51794@debbugs.gnu.org>; Sat, 13 Nov 2021 07:43:58 -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=4FlIZ9iODZC6DV2YyrwN6Ik+vpnEqqihkmaU0N7x/3s=; b=qka7z/Kk6ADsN44/mPW6q24L6qN1MsPO14ixetjQ6JsFFZC8m5PUBzG6R/GUUJ4ti1 q7lbipiRpZorhgjYahkBBpKJfXxFRR8xM1jhURaNTLpGdm7l3AFMAZb68RPINooAkapC /PbCCVnILaPR/l5nTLA1DHk3ZN5hvbEmuuFDQmLOfenlmNThiTOgppN+N+zZ00LgyYdn wERJM2FTMQolHqjPhnjgJU1PircYnXXGTz8Imqew6OnBzIlhiMNzNYUz6YqM38rBXCQF XfKaweoWysTR9U5zscWl+PrLSbtGNW7aaqn6gnyje6an6lcTQ4v4HSgJCpRQBD2ZbwpW eUOw== 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=4FlIZ9iODZC6DV2YyrwN6Ik+vpnEqqihkmaU0N7x/3s=; b=Ojfg5NSo7XLVlyJyEKQu0Vsl8QjrS4z1SXm9/gcLZ7GdMBpHiyXs6oCNvXTDUI+rPv wA0K57j96wRt1xhOQjzdorPUZL6YgYjQwmzs+tc2ciLtxYWuIq4ShADqUd78/IGcKcrI iSGVJcQyJUl/qT6ro4ofE+uuwteMdfHAkRKNHk76DV3r4F05UGVid6gde9r3emB+2ubs 7ct/YEsQxo59eN5PhpD+RSOlr1K4BfRrhbstNDi0WfBoXIh60PzBnymyk9iNw7oaXcDD ZKKilAJnM5a563BpQyCS1AuImTfJ08ZjR5kmsZs232qJueh6Rf6sc7iZ/Hwtr0fRgmvi LXaA== X-Gm-Message-State: AOAM5336MqNVYeVIuUrG46/63vwVPLy2fpYr9jcIS5zhkPAqJfA8KIBb Ek7gRu3Sjb2YEU3kZc39QleET5lcCK9Ye25/B/MGsQZ8ApU= X-Google-Smtp-Source: ABdhPJyFRSVuJJjQH73qxd+Nz5DcuK6/M5VoQ03q6vGDcmwBvbQDRhgMg6C3LwjAuYmSPP1VTzJywkis7rZHUn9waXE= X-Received: by 2002:a9d:6855:: with SMTP id c21mr19973563oto.357.1636818232047; Sat, 13 Nov 2021 07:43:52 -0800 (PST) In-Reply-To: <835yswxedz.fsf@gnu.org> 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:219821 Archived-At: --000000000000487adc05d0ad716e Content-Type: text/plain; charset="UTF-8" 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.) > --000000000000487adc05d0ad716e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, I'll check it out.=C2=A0

On Sat, Nov 13, 2021= , 10:30 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Mark Kenne= dy <mark.t.kennedy@gmail.com>
> 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= .=C2=A0 i
> prefer to focus on where the bad input event stream is being created.<= br> > 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<= br> code until you get to this line:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 position =3D make_lispy_position = (f, event->x, event->y,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 event->timestamp);

then step into make_lispy_position, and see what it produces.

(I hope I got the code right; apologies if not.)
--000000000000487adc05d0ad716e--