Don't automatically send minimized and maximized events, it's up to the windowing system to decide what to do with them.
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Feb 2011 22:51:44 -0800
changeset 5384 93d53f8a2323
parent 5383 40c76519000e
child 5385 5f9c2515fc08
Don't automatically send minimized and maximized events, it's up to the windowing system to decide what to do with them.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Mon Feb 21 22:50:15 2011 -0800
+++ b/src/video/SDL_video.c	Mon Feb 21 22:51:44 2011 -0800
@@ -1544,7 +1544,6 @@
     if (_this->MaximizeWindow) {
         _this->MaximizeWindow(_this, window);
     }
-    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
 }
 
 void
@@ -1559,7 +1558,6 @@
     if (_this->MinimizeWindow) {
         _this->MinimizeWindow(_this, window);
     }
-    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
 }
 
 void