src/video/wincommon/SDL_sysevents.c
branchSDL-1.2
changeset 6110 676a54593bc4
parent 5988 bf927e528813
child 6125 760a3162e180
--- a/src/video/wincommon/SDL_sysevents.c	Thu Dec 29 04:24:15 2011 -0500
+++ b/src/video/wincommon/SDL_sysevents.c	Thu Dec 29 04:29:53 2011 -0500
@@ -309,6 +309,8 @@
 					if ( WINDIB_FULLSCREEN() ) {
 						appstate |= SDL_APPMOUSEFOCUS;
 						SDL_RestoreDesktopMode();
+						/* A fullscreen app gets hidden but will not get a minimize event */
+						appstate |= (SDL_APPACTIVE | SDL_APPMOUSEFOCUS);
 #if defined(_WIN32_WCE)
 						LoadAygshell();
 						if( SHFullScreen )