unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 57468@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>,
	Bob Rogers <rogers@rgrjr.com>
Subject: bug#57468: 29.0.50; Text cursor continues to blink when frame loses focus
Date: Sat, 03 Sep 2022 20:26:44 +0800	[thread overview]
Message-ID: <87tu5oej97.fsf@yahoo.com> (raw)
In-Reply-To: <87zgfgd5il.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Sep 2022 14:08:50 +0200")

Lars Ingebrigtsen <larsi@gnus.org> 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.





  reply	other threads:[~2022-09-03 12:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-28 23:38 bug#57468: 29.0.50; Text cursor continues to blink when frame loses focus Bob Rogers
2022-08-29 15:21 ` Lars Ingebrigtsen
2022-08-29 18:04   ` Bob Rogers
2022-08-30 10:27     ` Lars Ingebrigtsen
2022-08-30 12:02       ` Eli Zaretskii
2022-08-30 23:33         ` Bob Rogers
2022-08-31 10:03           ` Lars Ingebrigtsen
2022-08-31 19:02             ` Bob Rogers
2022-08-31 19:24               ` Eli Zaretskii
2022-08-31 19:31               ` Bob Rogers
2022-09-03  9:44                 ` Lars Ingebrigtsen
2022-09-03 11:23                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03 11:52                     ` Lars Ingebrigtsen
2022-09-03 11:56                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03 12:08                         ` Lars Ingebrigtsen
2022-09-03 12:26                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-09-03 12:37                             ` Lars Ingebrigtsen
2022-09-03 13:03                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03 13:44                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03 13:47                                 ` Lars Ingebrigtsen
2022-09-03 13:54                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03 17:53                                     ` Bob Rogers
2022-09-04  0:36                                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu5oej97.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=57468@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=luangruo@yahoo.com \
    --cc=rogers@rgrjr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).