unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Bob Rogers <rogers@rgrjr.com>
To: Eli Zaretskii <eliz@gnu.org>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 57468@debbugs.gnu.org
Subject: bug#57468: 29.0.50; Text cursor continues to blink when frame loses focus
Date: Tue, 30 Aug 2022 16:33:44 -0700	[thread overview]
Message-ID: <25358.40536.609919.763436@orion.rgrjr.com> (raw)
In-Reply-To: <83h71uuegm.fsf@gnu.org>

   From: Eli Zaretskii <eliz@gnu.org>
   Date: Tue, 30 Aug 2022 15:02:17 +0300

   > Cc: 57468@debbugs.gnu.org
   > From: Lars Ingebrigtsen <larsi@gnus.org>
   > Date: Tue, 30 Aug 2022 12:27:00 +0200
   > 
   > Could it be the window manager that's not sending Emacs the de-focus
   > event (or whatever it's called)?

   That should be easy to verify by binding a command to the event that
   will display the event.  The focus-in "pseudo-key" is defined in the
   special-event-map.

When I went back to my console, I found to my consternation that two
local emacs instances plus a new "src/emacs -Q" all behaved correctly,
despite not having touched anything since my last email that might
conceivably have an effect.  Persevering, I used the following code to
track events:

	(defun rgr-focus-in () (interactive) (message "focus in"))
	(define-key special-event-map [ focus-in ] 'rgr-focus-in)
	(defun rgr-focus-out () (interactive) (message "focus out"))
	(define-key special-event-map [ focus-out ] 'rgr-focus-out)

And got the expected correct behavior.

   Then I brought up a pre-existing emacs instance running as root
(which I had forgotten about) and found that its blinking cursor stays
on persistently, and the focus in/out code above shows that it's getting
neither event.  (I don't remember if I tested this instance when
reporting the bug two days ago, but I suspect I did and that it was
normal.)

					-- Bob





  reply	other threads:[~2022-08-30 23:33 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 [this message]
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
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=25358.40536.609919.763436@orion.rgrjr.com \
    --to=rogers@rgrjr.com \
    --cc=57468@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /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).