cocoa: Workaround for an issue with incorrect window position after exiting fullscreen on some displays

Fix for https://github.com/libsdl-org/SDL/issues/15920

(cherry picked from commit f514394d1c)
This commit is contained in:
Michal Trepka
2026-08-02 07:28:03 -07:00
committed by Sam Lantinga
parent bcbdcaf6e4
commit cecc16ea51
+4 -1
View File
@@ -1572,7 +1572,10 @@ static NSCursor *Cocoa_GetDesiredCursor(void)
} else {
[nswindow setCollectionBehavior:NSWindowCollectionBehaviorManaged];
}
[NSMenu setMenuBarVisible:YES];
if (![NSMenu menuBarVisible]) {
[NSMenu setMenuBarVisible:YES];
}
// Toggle zoom, if changed while fullscreen.
if ([self windowOperationIsPending:PENDING_OPERATION_ZOOM]) {