src/events/SDL_windowevents.c
changeset 5383 40c76519000e
parent 5276 8e421890cdb8
child 5398 83816c8a2b58
--- a/src/events/SDL_windowevents.c	Mon Feb 21 22:27:19 2011 -0800
+++ b/src/events/SDL_windowevents.c	Mon Feb 21 22:50:15 2011 -0800
@@ -72,6 +72,7 @@
         if (window->flags & SDL_WINDOW_SHOWN) {
             return 0;
         }
+        window->flags &= ~SDL_WINDOW_HIDDEN;
         window->flags |= SDL_WINDOW_SHOWN;
         SDL_OnWindowShown(window);
         break;
@@ -80,6 +81,7 @@
             return 0;
         }
         window->flags &= ~SDL_WINDOW_SHOWN;
+        window->flags |= SDL_WINDOW_HIDDEN;
         SDL_OnWindowHidden(window);
         break;
     case SDL_WINDOWEVENT_MOVED: