Subject: Re: bug#78527: 30.1; Mishaving new frame creation in MacOS on new desktop

From: Eli Zaretskii <[email-masked]>
Date: Sat, 31 May 2025 14:19:40 +0300

Ping!  Boris and Gerd, could you please answer martin's questions?

> Date: Thu, 22 May 2025 16:44:18 +0200
> Cc: [email-masked]
> From: martin rudalics <[email-masked]>
> 
>  > Gerd and Martin, any suggestions or comments?
> 
> I'd like to understand the focus issue.  What does C-x 5 o do when run
> in the old frame?  What does running 'foo' defined as
> 
> (defun foo ()
>    (interactive)
>    (let ((frame (make-frame)))
>      (sit-for 3)
>      (message "%s" (frame-focus-state frame))))
> 
> report?  Is the message shown in both frames?
> 
> Does 'foo' specified as
> 
> (defun foo ()
>    (interactive)
>    (let ((frame (make-frame)))
>      (select-frame-set-input-focus frame)))
> 
> behave the same way?  Does
> 
> (add-hook 'after-make-frame-functions 'select-frame-set-input-focus)
> 
> change anything?  Does
> 
> (add-hook 'after-make-frame-functions 'redirect-frame-focus)
> 
> change anything?
> 
> martin
>