Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't automatically send minimized and maximized events, it's up to t…
Browse files Browse the repository at this point in the history
…he windowing system to decide what to do with them.
  • Loading branch information
slouken committed Feb 22, 2011
1 parent 0b3658c commit 9137996
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/video/SDL_video.c
Expand Up @@ -1544,7 +1544,6 @@ SDL_MaximizeWindow(SDL_Window * window)
if (_this->MaximizeWindow) {
_this->MaximizeWindow(_this, window);
}
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
}

void
Expand All @@ -1559,7 +1558,6 @@ SDL_MinimizeWindow(SDL_Window * window)
if (_this->MinimizeWindow) {
_this->MinimizeWindow(_this, window);
}
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
}

void
Expand Down

0 comments on commit 9137996

Please sign in to comment.