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

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

bug#37529: 27.0.50; last-focus-update is not set on startup from macOS G


From: Alan Third
Subject: bug#37529: 27.0.50; last-focus-update is not set on startup from macOS GUI
Date: Tue, 31 Aug 2021 20:36:44 +0100

user emacs
usertag 37529 ns
quit

Matthew Newton <matt@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





reply via email to

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