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#57468: 29.0.50; Text cursor continues to blink when frame loses focus Date: Sat, 03 Sep 2022 20:26:44 +0800 Message-ID: <87tu5oej97.fsf@yahoo.com> References: <25355.64624.561352.871099@orion.rgrjr.com> <87h71vnkic.fsf@gnus.org> <25356.65468.697925.958369@orion.rgrjr.com> <87h71uaux7.fsf@gnus.org> <83h71uuegm.fsf@gnu.org> <25358.40536.609919.763436@orion.rgrjr.com> <87k06o91c5.fsf@gnus.org> <25359.45100.999353.785164@orion.rgrjr.com> <25359.46875.604087.626984@orion.rgrjr.com> <87mtbgiygh.fsf@gnus.org> <8735d8g0r3.fsf@yahoo.com> <87mtbghdzm.fsf@gnus.org> <87y1v0ekn6.fsf@yahoo.com> <87zgfgd5il.fsf@gnus.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="4411"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 57468@debbugs.gnu.org, Eli Zaretskii , Bob Rogers To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 14:27:26 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 1oUSFC-0000yS-2Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 14:27:26 +0200 Original-Received: from localhost ([::1]:59000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUSFB-00040B-2Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 08:27:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUSEp-0003wW-Fm for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 08:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUSEp-0002tZ-5d for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 08:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUSEo-0003JG-0y for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 08:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Sep 2022 12:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57468-submit@debbugs.gnu.org id=B57468.166220802112708 (code B ref 57468); Sat, 03 Sep 2022 12:27:01 +0000 Original-Received: (at 57468) by debbugs.gnu.org; 3 Sep 2022 12:27:01 +0000 Original-Received: from localhost ([127.0.0.1]:41136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUSEm-0003Iu-Ez for submit@debbugs.gnu.org; Sat, 03 Sep 2022 08:27:00 -0400 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]:44616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUSEk-0003IS-Iy for 57468@debbugs.gnu.org; Sat, 03 Sep 2022 08:26:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662208013; bh=Sy/+qBh9O0IBqrhbx48io2MNmgMtn90G0lvTWXGzDi0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Z5FbuJKqWSci5A6tCNfLyE+4r87BjCD+S8VaSngezzYufYc6xiF2VIj50zH8J4prGEwYOKwyYfirBxdJA8W3qkoteyVZCu3WRo449YyGyg0f2gswni/6wXKLG/Jfmsu7GLUmdB4ZTC0Zkahq4pOyCErdgrUD//8zw1YhQREiEukgx3tTfAY5S2YVBArruPQk/cFm26311dFG80M1OXleF646RdPmhyDi4v8VtNMUT8EAIv5lohdYIic/eDgKwhostSz/sNViR/RKZxArU6la2pnTR2/6RKjAcx7oFrh2Wn9OWISe4O0O1wJUE2PPZKXHBo9DddfgmUwIbo5AMOFO+Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662208013; bh=DfvvN9qW9JfTAZp6JDOBQ+YbKHeBKATC2k0T2WaXll4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=tMqfmMoeDbZNLptPPA2AFa1VToBK2x04bzmvY4lr9p81mYVjqKuKURoA8yE/pBiAJujeY6JZyUkzyCXb+ZQGygVQjNImp4LvQlpAvVWdtDJuoV3kjjZM20+LF0IjhhfiNZsuSClkbjbPw/mSzq99vAztvXHkaKy37DvBNpo1j5Fd9g9VtT1vP0OYfpBraGBW+qvawmKZPnCgC0flvY+Rl//6jnpqJLuwDQZq1weNFVwiyuibrC8nneKNoowfTqyLStI5q/sB1Etmh0r5MSm2VV1fTEpboZzB0Bii+rr0HbPqwYy4YFz0h+wjmgYXEaWdYZ7CVsj4xSJXnR8arwa0FQ== X-YMail-OSG: Qu57S1QVM1kfPQjtOb0LZlcIStP7qPsAK_BP.7.zzxuvlPEyYPUYvB0V3tSSuTi A0xplHnSRMqzIwKdeMy_ZGSeYtDbslh_qPsGWlOJAyDNl6H6icAKYiKo.Ny.X.AF.Xsz88_f7_BE GRYC.OUI0k63G.Eimgp3BX0lEjtiXrJcinq0SS1UA0juy6OAUz80TQqxcJuxaPH7dGbK9j0kks_L XStCroCR.v_Wik.7YQkkYxJ0eVEv9qzUFdU6M_AnPkMhaVvvL3h7HsWhEtd0zEbJGC3wea0EGs1e TYQeB9P65I2LqNd_LTDBoxCcd7rJxSzgNWV0BUvJfo8caCkyRLZLvcr7KK9O29q4P4tZmrtCrIiR 7ET8YR8f5cAijArpZeseMbvu2BDbCamqT2Bn0gYtLcF_vaqeRmyLY6KZzJl4Uz8CAigLRMeRviBX XfST38NMPao5DGX4ziHjRnXWAVRMqEgG6l6odrV8BKf7wRobMMspa6bCMuG9u8YBMf5sjGaaUXJS 5reV4fiM04x44ddHCzgP9AbsntHhCoEaUzXyypifdF_2bSQdpGPeX0r3WUzIh.4Gl947jWB44nLr x50S9ofQ3u2wfjTEhLw38Mq.w1JC3IPbq15A.r.bY_zyBF1OtQ09MR0TSj7SMF2he_A7lqf15moK B.Qqb5MsNN_0tUe8TMz86DTEA48dOgER4wWobIW86kCcY4mO42ZcynSzXHFjTIKImBa_OndQf8.W nR3Uxe1dEbbwceQg7_wJfXDsKQ8QIKGbm2PDwvqRvqCuuYg0DFzWddvuNw_GmseLtMGN36Eezp_n SdoTutiPZhYm7DbwZz_XpdY3gNo6xL4fSkCjKoNwQb X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 3 Sep 2022 12:26:53 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-s4xp5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 829ef4d03de8fded9e78bff5efa4d88e; Sat, 03 Sep 2022 12:26:49 +0000 (UTC) In-Reply-To: <87zgfgd5il.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Sep 2022 14:08:50 +0200") X-Mailer: WebService/1.1.20595 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" Xref: news.gmane.io gmane.emacs.bugs:241396 Archived-At: Lars Ingebrigtsen writes: > And I now have a semi-reliable way to reproduce it. > > emacs -Q > C-x 5 2 > > Then start another Emacs, and place that frame over frame 2. Then give > frame 2 focus. Then switch to the other Emacs (which is covering frame > 2). Then click on the title bar of frame 1. Both frame 1 and the other > Emacs then have blinking cursors. > > This is with Gnome Shell. I tried several times (also on GNOME Shell), but it didn't work. So if frame 2 means the frame that was created by C-x 5 2, I still can't reproduce this, sorry. Could you please add instrumentation to x_focus_changed, like this: static void x_focus_changed (int type, int state, struct x_display_info *dpyinfo, struct frame *frame, struct input_event *bufp) { fprintf (stderr, "x_focus_changed: %d %d %p %p\n", type, state, frame, dpyinfo->x_focus_frame); and also instrumentation to xi_handle_focus_change, like so: } } fprintf (stderr, "xi_handle_focus_change: %p %p\n", <== add this instrumentation new, focus); <== if (new != focus && focus) { #ifdef HAVE_X_I18N if (FRAME_XIC (focus)) XUnsetICFocus (FRAME_XIC (focus)); #endif and show what is printed once the cursor begins to blink in both frames? Thanks.