sdl2_frt/src/video/cocoa
Sam Lantinga 3905b910f3 Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed
Eric Wasylishen

The problem seems to be the spaces handling code in -setFullscreenSpace: (SDL_cocoawindow.m) is incorrectly reporting that the SDL_WINDOW_FULLSCREEN -> windowed transition has already happened.

i.e. I saw this case was getting hit when trying to leave SDL_WINDOW_FULLSCREEN:

"else if (state == isFullscreenSpace) {
    return YES;  /* already there. */
}"

With the attached patch, both Control+Enter (SDL_WINDOW_FULLSCREEN toggle) and Option+Enter (SDL_WINDOW_FULLSCREEN_DESKTOP toggle) work in an sdl test app (I tried testwm2). Tested on OS X 10.9.2.
2014-06-02 09:01:10 -07:00
..
SDL_cocoaclipboard.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoaclipboard.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoaevents.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoaevents.m Mac: Don't prompt to reopen windows after crash. 2014-04-15 13:53:07 -07:00
SDL_cocoakeyboard.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoakeyboard.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamessagebox.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamessagebox.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamodes.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamodes.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamouse.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamouse.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamousetap.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoamousetap.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoaopengl.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoaopengl.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoashape.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoashape.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoavideo.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoavideo.m Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoawindow.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_cocoawindow.m Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed 2014-06-02 09:01:10 -07:00