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
This commit is contained in:
Michal Trepka
2026-07-02 12:37:36 -04:00
committed by Sam Lantinga
parent fcb5ef8a9c
commit f514394d1c

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]) {