mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-20 22:05:37 +08:00
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:
committed by
Sam Lantinga
parent
bcbdcaf6e4
commit
cecc16ea51
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user