Closed frenzibyte closed 3 days ago
What version of macOS is this happening on? On 14.5 it works correctly: alt-tabbing away from the fullscreen windows will take it out of fullscreen and minimize it, then alt-tabbing back will unminimize it and put it back into fullscreen.
I'm using macOS Sequoia 15.1.
alt-tabbing away from the fullscreen windows will take it out of fullscreen and minimize it, then alt-tabbing back will unminimize it and put it back into fullscreen.
Interesting, I vaguely remember that's how it used to work as well, seems like it may have broke in Sequoia indeed.
I updated to Sequoia and can reproduce this. It seems that Sequoia won't minimize the window when leaving fullscreen unless it is briefly made key again. Moving the miniaturization request to later in the fullscreen switching function seems to fix this.
We should also probably also check for a pending fullscreen restoration flag on focus restoration, so fullscreen is still restored with focus just in case the miniaturization request fails.
Thank you for this quick response and action!
This can be replicated directly by
testwm
:https://github.com/user-attachments/assets/11aa62b8-e7ec-43de-81c5-4d363ec49969
Steps:
testwm
and set to fullscreen using Ctrl+Entertestwm
windowNotice the window has reset back to windowed mode and the
FULLSCREEN
window flag has been removed.