Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too

  • Loading branch information
slouken committed Mar 29, 2011
1 parent b682ae0 commit c55514b3d4135f73852968551f11b9ff755dcac9
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/events/SDL_windowevents.c
@@ -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) {

0 comments on commit c55514b

Please sign in to comment.