SDL/src/video
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
..
android Comment out eglWaitGL from Android_GLES_SwapWindow 2014-04-17 12:44:08 -03:00
cocoa Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed 2014-06-02 09:01:10 -07:00
directfb Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
dummy Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
haiku Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
mir eglGetProcAddress fails the same way on MIR as ANDROID does on arm. Thanks Sylvain Becker for the patch! 2014-05-06 15:08:43 -07:00
pandora Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
psp Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
raspberry Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
uikit Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
wayland Fixes #2512, handle configuration change messages sent by Wayland. Patch by Bryan Cain. 2014-05-10 16:50:05 -03:00
windows Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic. 2014-06-02 08:58:07 -07:00
winrt WinRT: fixed the max-button count for WinPhone 8.1 message boxes 2014-05-10 23:39:54 -04:00
x11 Fixed stack overflow in X11_CreateWindow() (thanks, rapha and Brad!). 2014-05-24 21:06:40 -04:00
SDL_blit.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_0.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_1.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_A.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_auto.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_auto.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_copy.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_copy.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_N.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_slow.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_blit_slow.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_bmp.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_clipboard.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_egl.c Fixes #2519, clear error if using the default library path for EGL succeeds. 2014-05-10 16:13:22 -03:00
SDL_egl_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_fillrect.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_pixels.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_pixels_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_rect.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_rect_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_RLEaccel.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_RLEaccel_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_shape.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_shape_internals.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_stretch.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_surface.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_sysvideo.h Fixed whitespace. 2014-05-24 01:25:27 -04:00
SDL_video.c Added some FIXMEs. 2014-05-24 01:27:19 -04:00
sdlgenblit.pl Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00