Commit 36be7157 authored by Sam Lantinga's avatar Sam Lantinga

Don't automatically send minimized and maximized events, it's up to the...

Don't automatically send minimized and maximized events, it's up to the windowing system to decide what to do with them.
parent 25240272
...@@ -1544,7 +1544,6 @@ SDL_MaximizeWindow(SDL_Window * window) ...@@ -1544,7 +1544,6 @@ SDL_MaximizeWindow(SDL_Window * window)
if (_this->MaximizeWindow) { if (_this->MaximizeWindow) {
_this->MaximizeWindow(_this, window); _this->MaximizeWindow(_this, window);
} }
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
} }
void void
...@@ -1559,7 +1558,6 @@ SDL_MinimizeWindow(SDL_Window * window) ...@@ -1559,7 +1558,6 @@ SDL_MinimizeWindow(SDL_Window * window)
if (_this->MinimizeWindow) { if (_this->MinimizeWindow) {
_this->MinimizeWindow(_this, window); _this->MinimizeWindow(_this, window);
} }
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment