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

From: martin rudalics <[email-masked]>
Date: Thu, 22 May 2025 16:44:18 +0200

> 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