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#60356: 30.0.50; individual frame loses keyboard focus, focus cannot be restored Date: Thu, 29 Dec 2022 07:57:08 +0800 Message-ID: <87cz83kror.fsf@yahoo.com> References: 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="15568"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60356@debbugs.gnu.org To: git@sphalerite.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 00:58:20 2022 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 1pAgJQ-0003sU-3l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 00:58:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAgJ9-000508-7N; Wed, 28 Dec 2022 18:58:03 -0500 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 1pAgJ8-0004yz-9C for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 18:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAgJ8-00040L-0Z for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 18:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAgJ7-00039B-S4 for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 18:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Dec 2022 23:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60356 X-GNU-PR-Package: emacs Original-Received: via spool by 60356-submit@debbugs.gnu.org id=B60356.167227185112053 (code B ref 60356); Wed, 28 Dec 2022 23:58:01 +0000 Original-Received: (at 60356) by debbugs.gnu.org; 28 Dec 2022 23:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:59004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAgIc-00038K-TK for submit@debbugs.gnu.org; Wed, 28 Dec 2022 18:57:31 -0500 Original-Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]:41480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAgIZ-000382-BV for 60356@debbugs.gnu.org; Wed, 28 Dec 2022 18:57:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672271840; bh=QenvuyOahKHmVoSc2mFl8DuZvEAc075R6OTSoOsGagU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=FMj8SmYCyGMSZHyG2TWlAsO+jAyXY6zY0cHy8Wq8SjYqOoxB3OgvMdQiykhJmCC+qI9n+v2e2Nsb8pZeOWFlnmyXGnhOJBsN5N0sJgIN49rZyOR7I7nPT8umqkbkU7Eul1gL77nhXfkNBlu53LI7nqCF/YenrLUb4UHbryS2PMX/x6ixi3No+I4on73AIBfhpQZaV7pBj5iJZF2EXaiGpFqsU2YGf7WLL0jrbl8Fd9jYgDy2GlmSdjZxuWpDbZUCFkxjGb1mam//JNLJB2SoqioFKFecwd/UmSdXdc2xXun5Hoc3APjseNoMBnrRIxdKYSfaH9vE9beALGRPcxcKDQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672271840; bh=m8Ij2Tcg9vz0m0+mJz3z9cF/+GGuo8ejLXp0BY8r7nI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QEX0cvuEzLK/s+xGr3MWFwutFQXOc+k/IbbtRvLbxxf4RW/hf0ScwaR0n/FAS9MOhcyy9M9C5NlfHWuHiV/RukwHKG/2tWol3BW0OZpTarhbECt3LHDr80X2HuiMVTBtqKY9KAnV8XLFWu5AkAHOTK2ztavdXujbjqo4cmgGoAmgu4Fy92hfvWvKb3qab5Q1hIo8CrqpS3yQrRsZZSrNnBYyowV7aucTruElLkQfLm+vSbglo+cjIHDV18Dx0auXdOl5UixpojkLsSaAt9OIskjVJiAOoKcmF9R6oE+wxRwQFx3dqHZT/84qh+w+koy+YvY08wnWa1lufRd0gITO0g== X-YMail-OSG: NKWu6IMVM1mo21ZTMqZgAGKS8tTv5OBVfi6LA9Ehzk5OxtUkukCMO4rep4NUaRn Y8EB.RI8exaiuxj4J2XyM3EbJMVaHo68E1XaLsveX9p44qbH2x13ugVRGVf60_ppcItzXZIU435Z Tkfjtj0e14FGpbfN6gAdtGXFBI3M1LOwYP.2VImepnyeenhMMhR7jz9Npc4c031k7yOEoDIy.IQv vPmsutkSfqdfLORZRGn.0DzNpJ2JcPoZEh8hQ1Edh2mA9B7tliNyNLpCg2rkcd_mJUOXr3dnqqKV aLHUP3e8ydvUoWZasN9QaBbTX3.jonVc6G9NmvCnwMMKC3d_ZpKMBNcJHAYdc7D7RcaOCSkasFxj dWbBVraVf.ChkzxMQaHE82tBL7cLy12ko0KxCNM16o...yj8YipcMuhFscWoL1VdCLmv4BYa.c4w QQEd.IpqYiUyiPmMg9vTZQrShSAqgMuIfnPE24vNGASmeLQ5RiQFdULKpJ3A7g.Q8YTHdgi0Lpow BpF1QYZKQ_21Gr6jJ0Hlz09v8pIzOcMM029RFT_O6Q1k4BoXVGp0opOye4hyHildtECDCwQW2520 1.aep_XqboyQ8KVcNVwWUDUE2DiOZPoxyf3SapMgpWzmD4bKdfzsSFFxXBdVcXM5ut5rJlHbJzpp t3_FjDS5mhedn35cIKoIpeQVFuKWslk5fqCgks3IAu5g7R_TwyHnaS_T_z8PtfF.eTs95SOL3aGB ACR6rHBo4zro67LJrS2sxMYpdz8HedLOMX83coBy4LpqTBYdugF6bokHCGmiJq8UezAoAt.m3nEy OF3t6FZdHXAjurfDi88CzCVmmzp0eGU6C8IbFVAFUk X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Wed, 28 Dec 2022 23:57:20 +0000 Original-Received: by hermes--production-sg3-b666c6484-nr67k (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0211d8d4d66568dbbee2272dee674086; Wed, 28 Dec 2022 23:57:14 +0000 (UTC) In-Reply-To: (git@sphalerite.org's message of "Tue, 27 Dec 2022 13:19:44 +0100") X-Mailer: WebService/1.1.20982 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252004 Archived-At: git@sphalerite.org writes: > The exact action leading to this bug is not clear to me. It seems to be > related to lsp-mode though -- I've not observed it happening without > lsp-mode. > > The symptom is that a single frame will no longer accept keyboard input, > and will visually indicate that it is not focused (outline rectangular > cursor where I'd usually expect a solid rectangular cursor). Mouse input > still works, and other frames still accept keyboard input as normal. > > I'd be glad if anyone could point out ways to further debug this issue. > I'm also in #emacs:matrix.org (@linus:schreibt.jetzt) in case > fast-turnaround communication would be helpful :) Can you reliably reproduce this issue? If you can, please add some instrumentation to x_new_focus_frame, like this: diff --git a/src/xterm.c b/src/xterm.c index 1eef8e7a724..cda2897e013 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11695,6 +11695,9 @@ x_new_focus_frame (struct x_display_info *dpyinfo, struct frame *frame) } #endif + fprintf (stderr, "x_new_focus_frame: switching focus to" + " %s\n", SSDATA (frame->name)); + if (frame != dpyinfo->x_focus_frame) { /* Set this before calling other routines, so that they see and see what is printed out when you try to focus the frame that does not accept input. Thanks.