src/events/SDL_windowevents.c
changeset 5524 b7f53a566ef1
parent 5398 83816c8a2b58
child 5525 e427bb6266a4
--- a/src/events/SDL_windowevents.c	Mon Mar 28 20:56:28 2011 -0700
+++ b/src/events/SDL_windowevents.c	Mon Mar 28 23:44:51 2011 -0700
@@ -170,7 +170,8 @@
         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) {