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 21:03:50 +0800 Message-ID: <87pmgcehjd.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> <87tu5oej97.fsf@yahoo.com> <877d2kd46n.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="24554"; 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 15:05:37 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 1oUSq8-0006CE-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 15:05:36 +0200 Original-Received: from localhost ([::1]:53482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUSq7-00053z-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 09:05:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUSpa-00053Z-K8 for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 09:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUSpa-0003HA-Ad for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 09:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUSpa-0000EM-6P for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 09:05: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 13:05:02 +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.1662210249818 (code B ref 57468); Sat, 03 Sep 2022 13:05:02 +0000 Original-Received: (at 57468) by debbugs.gnu.org; 3 Sep 2022 13:04:09 +0000 Original-Received: from localhost ([127.0.0.1]:41181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUSoi-0000D8-VM for submit@debbugs.gnu.org; Sat, 03 Sep 2022 09:04:09 -0400 Original-Received: from sonic302-21.consmr.mail.ne1.yahoo.com ([66.163.186.147]:37378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUSog-0000CY-M5 for 57468@debbugs.gnu.org; Sat, 03 Sep 2022 09:04:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662210240; bh=9tcCQbGDcLTzV+EkkEAYZg4MvEuJNvaH6VqBjgADTBI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=O318Srg6DMZVMJFuUd6etnHUP1cCYnrrDop9bWdTFrryaiUwv7hydqnkXgng7kJoNy2SV/EsPyzQOWwCNH1iLrcL3SuPQ5kkmEVFFr+VeCHaoRRsacWCdvRHY7Cvelx/vcbnToed6pSTRmJ0S7/FXEkUFFObt34tssSHW6NSKESZ/Z4W2FW/9jIsQR1eWbUy1mxHK0K/jjaXKmOghrwVoLQ8UV7dojvkI10d9PJlajdXfB+P+mPa/EdaOJBWnZmZZ21TIn6gvBjRbJqoR8YjiL3Kt6ted+APFVrgQJzDAahcs3a1vRxQNZogfuU1q5iDikMgp81lVNPLcLiWktDg3g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662210240; bh=qoi3m0YU1/lk6piBJqKKYbqu/4Z+0seQGYKJ8/hD7y1=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Kk5j35i9p+GbO4+0kg/ODndFNadTFfY3VOB6zkqqKmGOIZk/OrQOAswyT8ers1Lx3gBLeh1fyE6MxlyAVSDi3Mm8jg1VlEob/UDvngx6VL3aJuy4m0j/Oks7AaHivVBenfoEtVe2rGHBMQzqHATWmJTiXUkQzEcgthDuUKVsdF0TZsazbG0pnmTuOHtupA796WSzDbgXcNidAeqPBAwuHCWjKjHN0Nc2RHwX6kIz0fRDws6T/7c+5MHKNfLFa1cd34SsD4QzjzZcUacndY9THIdPFhUsa7e3ThydZTBSQUMZhcGAqBKboLVMUEx3ECORlRTs7fSBwLDydg2+v7px5A== X-YMail-OSG: _DnODcgVM1k9x7gFWFDVh1z_gVW6YUcy3Gj6VsT0LL._luqPOUgYRwfVuVpfE9_ 0pjDjWtwWTXi66Fc2FKuz3ejxAgQkzmmCDkzljjBAhuJEi8ULFXpZ7KY_PWFibTK0ferIAJliG4V qwY.PIMxe1oyL7MkzUBES0_TB7ZlxwPnNrkN8Ri4WT_4ehiSbRYQXB6ucMp1VOHg6Rve2OKGDhH0 Xc8GA4rLu5ldGX54R_5bW9rxeHLcPGIzhaDNzvG2mk7afvwRR9Gx0B625IpGWccoOfq7f6gSzNR0 f12hiV_h3YLYvvS6jwxpZQ2bp60pOAsiGNS5dA5bILiQJeavKzlbmuvjiCsFX39qOrhqhpVaJ4TY v3_DAdoJaegDXEcHZuAzOGnWvUzTPkPlM.RAm7PXKMmX6oUD_lwK_R_YP2zpFNI23_duFMbW4gsT MVxgWP47CJi36i8wbPmkNNihvqtG0zfcu4emIPinsctwUbDbk7vT5utcUaLu7R1XXvokqhDshCkq XfzBt8stCwQgWntatY4JOjWNGvMnDBwwuS6Q8DneLoVINmNsS3jPcR.gda1LljM_V6iXlgLkX5_g jAENBcoXkFMRayKViGOwIohjuq8Luswl07DA9jQvb8dYHNRniahYbM02gqcxsVdv_wULk8cTucFD M.WRhasTuSeDJJGP_h0Y9EznYzlzAsSZlWEBI.mRO4FR0C0qydDoojXXr0WRCrs2035YZAY60Hcy sqiTKk7DjPIonZeIZeEueJ9RS7sY_rEV35be9hARtSAzT5a__Rq2WGqpodAINEpKcvVgmQIm67rk blzIB8VfVRS79AUPrx8Rd30_yonboJasVCFUyVd57w X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sat, 3 Sep 2022 13:04:00 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-nbhdn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0247cb0a6688f3d29db253d2cc750040; Sat, 03 Sep 2022 13:03:55 +0000 (UTC) In-Reply-To: <877d2kd46n.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Sep 2022 14:37:36 +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:241405 Archived-At: Lars Ingebrigtsen writes: > xi_handle_focus_change: 0x55bb4bd32300 (nil) > xi_handle_focus_change: 0x55bb4bd32300 0x55bb4bd32300 > xi_handle_focus_change: 0x55bb4bd32300 0x55bb4bd32300 > xi_handle_focus_change: 0x55bb4bd32300 0x55bb4bd32300 > xi_handle_focus_change: 0x55bb4bd32300 0x55bb4bd32300 > xi_handle_focus_change: 0x55bb4bd32300 0x55bb4bd32300 > xi_handle_focus_change: (nil) 0x55bb4bd32300 This looks fine, so far. > And this is what the other Emacs, with one frame, says: [...] > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 > xi_handle_focus_change: 0x559640421300 0x559640421300 Was this printed immediately after you switched to frame 1 (on the Emacs that has two frames)? Or did you give the focus back to the other Emacs (the one with a single frame) afterwards? If the former is the case, could you please in addition to the earlier instrumentation also instrument xi_focus_handle_for_device like such: case XI_FocusIn: device->focus_frame = mentioned_frame; device->focus_frame_time = event->time; fprintf (stderr, "XI_FocusIn\n"); <== add instrumentation here break; case XI_FocusOut: device->focus_frame = NULL; fprintf (stderr, "XI_FocusOut\n"); <== here break; case XI_Enter: if (!event->focus) break; if (device->use == XIMasterPointer) device = xi_device_from_id (dpyinfo, device->attachment); if (!device) break; device->focus_implicit_frame = mentioned_frame; device->focus_implicit_time = event->time; fprintf (stderr, "XI_Enter\n"); <=== here break; case XI_Leave: if (!event->focus) break; if (device->use == XIMasterPointer) device = xi_device_from_id (dpyinfo, device->attachment); if (!device) break; device->focus_implicit_frame = NULL; fprintf (stderr, "XI_Leave\n"); <=== and here break; and show what is printed in the second Emacs (with a single frame) once it starts to blink despite not being focused? Thanks.