GNU bug report logs - #37529
27.0.50; last-focus-update is not set on startup from macOS GUI

Previous Next

Package: emacs;

Reported by: Matthew Newton <matt <at> mnewton.com>

Date: Thu, 26 Sep 2019 20:47:02 UTC

Severity: normal

Tags: confirmed, help

Merged with 3397, 47731

Found in versions 27.0.50, 28.0.50

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Matthew Newton <matt <at> mnewton.com>
Cc: 37529 <at> debbugs.gnu.org
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 <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.