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

Commit

Permalink
Browse files Browse the repository at this point in the history
Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
  • Loading branch information
slouken committed Mar 29, 2011
1 parent b682ae0 commit c55514b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/SDL_windowevents.c
Expand Up @@ -170,7 +170,8 @@ SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
event.window.windowID = window->id;

/* Fixes queue overflow with resize events that aren't processed */
if (windowevent == SDL_WINDOWEVENT_RESIZED) {
if (windowevent == SDL_WINDOWEVENT_RESIZED ||
windowevent == SDL_WINDOWEVENT_SIZE_CHANGED) &&
SDL_FilterEvents(RemovePendingSizeEvents, &event);
}
if (windowevent == SDL_WINDOWEVENT_MOVED) {
Expand Down

0 comments on commit c55514b

Please sign in to comment.