src/video/cocoa/SDL_cocoawindow.m
changeset 8798 2703c0c19f45
parent 8738 354dabd2cb58
child 8801 98173814b673
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Jun 02 08:58:07 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Jun 02 09:01:10 2014 -0700
     1.3 @@ -268,6 +268,8 @@
     1.4          return NO;  /* Spaces are forcibly disabled. */
     1.5      } else if (state && ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP)) {
     1.6          return NO;  /* we only allow you to make a Space on FULLSCREEN_DESKTOP windows. */
     1.7 +    } else if (!state && ((window->last_fullscreen_flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != SDL_WINDOW_FULLSCREEN_DESKTOP)) {
     1.8 +        return NO;  /* we only handle leaving the Space on windows that were previously FULLSCREEN_DESKTOP. */
     1.9      } else if (state == isFullscreenSpace) {
    1.10          return YES;  /* already there. */
    1.11      }