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: Wed, 04 Jan 2023 09:08:57 +0800 Message-ID: <878rijjec6.fsf@yahoo.com> References: <83edsk23kp.fsf@gnu.org> 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="27663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 60356@debbugs.gnu.org To: Linus Heckemann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 02:10:22 2023 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 1pCsIO-0006ur-FF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 02:10:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCsI7-0003d4-BA; Tue, 03 Jan 2023 20:10: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 1pCsI6-0003ct-7s for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 20:10: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 1pCsI5-0003eb-Uq for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 20:10:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCsI5-00007i-Q5 for bug-gnu-emacs@gnu.org; Tue, 03 Jan 2023 20:10: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, 04 Jan 2023 01:10: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.1672794555391 (code B ref 60356); Wed, 04 Jan 2023 01:10:01 +0000 Original-Received: (at 60356) by debbugs.gnu.org; 4 Jan 2023 01:09:15 +0000 Original-Received: from localhost ([127.0.0.1]:47163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCsHK-00006F-Tc for submit@debbugs.gnu.org; Tue, 03 Jan 2023 20:09:15 -0500 Original-Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]:42154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCsHI-000062-4K for 60356@debbugs.gnu.org; Tue, 03 Jan 2023 20:09:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672794546; bh=OeQoA86rkCQGfiic5r4ge7YL/w2Vv+tpWPRLoF1nrAI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=hpcRvOP+o8ks3V5bm+ueqvyIedwu7MEqbyYdQRTbVEJ/VxHbFnehTDXyME2Q7E+dq9FS0cOXjGZwBAEAFtAqpBQkoq/K+hVXcoOOJxNHGqkS1iGJjIZ9EdKcwR8MuSy9nY26BoLTiDXJy0JVXQToLtP5cJ5SXOqbIKUqxqHfcr4/14mnWdK5pvmbadqMD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m5MwewMVYhpjmzt4tQtm_6gbunYkbgShCJz_ NJifw4zYpsaX1WajDlQPwfkL_4EcbXaZFdu1ecD6jEFRv7_s4Cz_AZl60F4Hl_1RFj3WTxjztHao XROhvf.Vazm.5FFnbZKclDTTGmLN0WjBSOn878kVadPMVH_zJq92R1VcIQGtnZlCIqqEA787UqTW 6fFIlOjNBNWXqG8q14HbTvup4x8.vLQaSgaBN4vAg_W_0bphWc0MnXaUTo6FgTt41yyxH6RH092k gDWUT8OKghtM86Ef3A0XbeFym9RDCap0lesGGpAoK7QuZMHzw_KvUm59BxZjjNgD05nDpl5DiNoa ls6fJjiY2.ZCEk9kK.7C46hdqRdBDR3SHJUq6VjIyJB5kzDuTlGOnp5aEy7TLmHB30QN5JuqzYTE wKwq4TKXLghKuAoXspu16tstPTxXVcYPKVDRmoH5z6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Wed, 4 Jan 2023 01:09:06 +0000 Original-Received: by hermes--production-sg3-b666c6484-4bg7k (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID da61b6bc648bed01cc5145c74ee0e0f3; Wed, 04 Jan 2023 01:09:03 +0000 (UTC) In-Reply-To: (Linus Heckemann's message of "Tue, 03 Jan 2023 14:11:32 +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:252443 Archived-At: Would you please do what I asked earlier, namely: 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.