GNU bug report logs -
#37529
27.0.50; last-focus-update is not set on startup from macOS GUI
Previous Next
Full log
Message #8 received at 37529 <at> debbugs.gnu.org (full text, mbox):
user emacs
usertag 37529 ns
quit
Matthew Newton <matt <at> mnewton.com> writes:
> Hi All,
>
> When Emacs is started from the GUI in macOS and receives focus from the window manager, the frame parameter last-focus-update is not set:
>
> (frame-parameter (selected-frame) 'last-focus-update) => nil
>
> If I switch to another macOS window, then back to Emacs, it is then set as expected:
>
> (frame-parameter (selected-frame) 'last-focus-update) => t
>
> Running `emacs` or `emacs -Q` from the command line does not exhibit this problem. I have tried this with no user config at all. Same result.
>
> It seems like there is a focus-in event that either gets lost or is never triggered when macOS starts Emacs and hands off from the GUI. How does Emacs decide whether the frame is focused when it starts up?
My money is on this being the same cause as bug#47731, etc.
--
Alan Third
This bug report was last modified 97 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.