mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 15:23:34 +00:00
You can't change the size of a window while in macOS fullscreen space
This commit is contained in:
@@ -2643,7 +2643,8 @@ void Cocoa_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
|
||||
SDL_CocoaWindowData *windata = (__bridge SDL_CocoaWindowData *)window->internal;
|
||||
NSWindow *nswindow = windata.nswindow;
|
||||
|
||||
if ([windata.listener isInFullscreenSpaceTransition]) {
|
||||
if ([windata.listener isInFullscreenSpace] ||
|
||||
[windata.listener isInFullscreenSpaceTransition]) {
|
||||
windata.pending_size = YES;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user