diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 1cd9b63a7..010373a72 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -460,7 +460,10 @@ GetWindowStyle(SDL_Window * window) NSWindow *nswindow = _data->nswindow; if (!(window->flags & SDL_WINDOW_RESIZABLE)) { + Uint32 flags = window->flags; + window->flags &= ~SDL_WINDOW_FULLSCREEN_DESKTOP; [nswindow setStyleMask:GetWindowStyle(window)]; + window->flags = flags; } isFullscreen = NO;