bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53276: The blink-cursor-mode not work after startup on macOS


From: Po Lu
Subject: bug#53276: The blink-cursor-mode not work after startup on macOS
Date: Sat, 15 Jan 2022 15:04:35 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eason Huang <aqua0210@foxmail.com> writes:

> When Emacs is started at the first time, the blink-cursor-mode does
> not work, and the focus needs to be switched to another
> application, and then switching back again, it will work properly.

blink-cursor-mode will only start the idle timer that actually blinks
the cursor if at least one frame is focused, but no FOCUS_IN_EVENT is
sent until windowDidBecomeKey is called a second time, as emacs_event is
NULL when windowDidBecomeKey is first called.  This is both on GNUstep
and macOS.  (Perhaps storing the FOCUS_IN_EVENT into the keyboard buffer
would be an option.)

Alan, do you have any idea as to why this is?  I'm afraid I don't really
understand the NS event loop code.

Thanks in advance.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]