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 538493d53f8a2323
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
     1.1 --- a/src/video/SDL_video.c	Mon Feb 21 22:50:15 2011 -0800
     1.2 +++ b/src/video/SDL_video.c	Mon Feb 21 22:51:44 2011 -0800
     1.3 @@ -1544,7 +1544,6 @@
     1.4      if (_this->MaximizeWindow) {
     1.5          _this->MaximizeWindow(_this, window);
     1.6      }
     1.7 -    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
     1.8  }
     1.9  
    1.10  void
    1.11 @@ -1559,7 +1558,6 @@
    1.12      if (_this->MinimizeWindow) {
    1.13          _this->MinimizeWindow(_this, window);
    1.14      }
    1.15 -    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
    1.16  }
    1.17  
    1.18  void