Backed out changeset 81e6d0f852fc for bug 3697
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Aug 2017 20:09:23 -0700
changeset 11172879cacfe85c2
parent 11171 6f6e8880cd37
child 11173 6709dc9adb16
Backed out changeset 81e6d0f852fc for bug 3697

Eric Wasylishen

Unfortunately this commit seems to have broken exiting desktop-fullscreen.
- Launch testgl2.
- Press alt+enter to go fullscreen-desktop
- Press alt+enter again. The spinning cube will freeze, and the window stays fullscreen desktop.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Jul 31 12:57:15 2017 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Aug 01 20:09:23 2017 -0700
     1.3 @@ -674,7 +674,6 @@
     1.4          pendingWindowOperation = PENDING_OPERATION_NONE;
     1.5          [self setFullscreenSpace:NO];
     1.6      } else {
     1.7 -        SetWindowStyle(window, 0);
     1.8          if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) {
     1.9              [NSMenu setMenuBarVisible:NO];
    1.10          }