From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73469: 29.4; mouse passing on terminal window generates events Date: Wed, 25 Sep 2024 18:45:23 +0300 Message-ID: <861q17d9f0.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73469@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 25 17:46:17 2024 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 1stUDY-0000ky-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 17:46:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stUD8-0004fK-Ml; Wed, 25 Sep 2024 11:45:54 -0400 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 1stUCu-0003oj-Pj for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 11:45:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stUCu-0005L8-GV for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 11:45:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=HN8bjty5y3HB5sQwyNlABZMOelBTByMWsXR/q6oKzUg=; b=BOBP0t6OefjHyqxkOwOsqPqA5HX1p5uJQpA63ijIO7uO4sAPtNejzaa6EkqW3KTzwhfNtzHGpH0J87iz/770B7Uo+TbG6/Kz0fF25eT4gkL/QCBdFGYD8mU6vcx0UrqJ4643bCF/QY4/vN4MvYbfzzlYFze1edqWgvrvJAUpM2mxrpqNpk+XCQEGQsy51RZgIjhvNPTv0gRzI447WSwp2rQ578DXThT08JEXDvB4rqqVkZM86PgcDBtZquchr85bRESBcfXwGAQVR1/QqD5xd+fp+DedI5mKZw7ZZdcD/xLoOaU/gl9HCAgkCAwkbkcV1MtiHCfFeSS+LKwRlUFIzw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stUDK-0003h0-Dc for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2024 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73469 X-GNU-PR-Package: emacs Original-Received: via spool by 73469-submit@debbugs.gnu.org id=B73469.172727916114184 (code B ref 73469); Wed, 25 Sep 2024 15:46:02 +0000 Original-Received: (at 73469) by debbugs.gnu.org; 25 Sep 2024 15:46:01 +0000 Original-Received: from localhost ([127.0.0.1]:43083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stUDJ-0003ge-2r for submit@debbugs.gnu.org; Wed, 25 Sep 2024 11:46:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stUDH-0003gQ-MP for 73469@debbugs.gnu.org; Wed, 25 Sep 2024 11:46:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1stUCk-0005KX-6t; Wed, 25 Sep 2024 11:45:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HN8bjty5y3HB5sQwyNlABZMOelBTByMWsXR/q6oKzUg=; b=BYTSe53mEkfVf9MQhjEO VeRVYxamUe1K5+vTnu0ZK5IGkJuNCZC0gsuJhnAkPrXI4lomom4JfkYhlphP23mvapwZl4fKa5GXi AttXAIudnfFIaVtWEsavOlKPyincT7iRmTBwLurI/z5n6kg4ektoeMlmql7EdQPk4PElJZydIRbc8 IcnXwkka+ldsoshRCu9qVonIdC4THNO/Bzyqc9Zgn/qtomBpnKia/IxxClVO0EzomNYEh3sGHfufR H+WddJdgWuO44PFkHLfRMsXrIFXQKcL1a4G4YYwu2I6NcPS5rJvuXe+4zEP5iiY6mfq4qaZ/S3Gwl t2QA4uQlfac8zg==; In-Reply-To: (bug-gnu-emacs@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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292400 Archived-At: > Date: Wed, 25 Sep 2024 14:23:29 +0200 > From: Francesco Potortì via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I don't know when this has started happening. I use the Emacs shipped > by Debian, so I suppose it started when Debian pushed a new version > into Testing. What was the previous Emacs version you used? > I run Lucid Emacs inside Screen, running in a Mate-Terminal window under > the Mate desktop under X. > > From the terminal emacs frame, I create X frames and usually work there, > when I'm on X. However, I keep the terminal open and sometimes I use > the emacs frame in the terminal. > > When the mouse cursor passes over the terminal window, it generates > events, like this as seen by view-lossage: > > C- 1 2 0 ; 2 1 M ESC [ M 3 5 ; C- 1 2 0 ; 2 1 M ESC [ M 3 5 ; C- 1 2 0 ; 2 1 M ESC [ M 3 5 ; C- 1 2 0 ; 2 1 M ESC [ M 3 5 ; C- 1 1 0 ; 2 2 M ESC [ M 3 5 ; C- 1 0 4 ; 2 2 M ESC [ M 3 5 ; C- 9 8 ; 2 1 M ESC [ M 3 5 ; C- 9 7 ; 2 1 M ESC [ M 3 5 ; C- 9 7 ; 2 1 M ESC [ M 3 5 ; C- 9 6 ; 2 1 M ESC [ M 3 5 ; C- 9 4 ; 2 1 M ESC [ M 3 5 ; C- 9 0 ; 2 2 M ESC [ M 3 5 ; C- 8 8 ; 2 2 M ESC [ M 3 5 ; C- 8 7 ; 2 2 M ESC [ 2 1 ~ C-j ;; electric-newline-and-maybe-indent > C-h l ;; view-lossage > > After passing the mouse over the windows, it almost always calls the terminal menu (in red and blue colors) and I have to hit f10 to make it go away. Often I do not realise that I have moved the mouse over the termial window and I find Emacs apparently hung on the X frames, until I go to the terminal window and hit f10. Sometimes Emacs hangs during one of these events and I have to kill it as I find no way to revive it. > > I do not know if this depends on mate-terminal, screen or emacs, and I have not tried to debug it, as I just discovered the reason why this happens at all (that is, passing the mouse cursor over the terminal window). > > If this is not a known bug, please let me know and I'll try to dig deeper. Suggestions at where to start looking at would be appreciated. I'd start at the terminal-specific initializations your sessions are loading. What does tty-type return when called without arguments from the terminal Emacs frame? The next suspect is xt-mouse.el. Another thing to look into is whether this happens in "emacs -Q"; if not, take a good look at your customizations, especially those which are related to mouse support on terminal frames.