Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Mar 2011 23:44:51 -0700
changeset 5524b7f53a566ef1
parent 5523 6dc03727fadc
child 5525 e427bb6266a4
Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
src/events/SDL_windowevents.c
     1.1 --- a/src/events/SDL_windowevents.c	Mon Mar 28 20:56:28 2011 -0700
     1.2 +++ b/src/events/SDL_windowevents.c	Mon Mar 28 23:44:51 2011 -0700
     1.3 @@ -170,7 +170,8 @@
     1.4          event.window.windowID = window->id;
     1.5  
     1.6          /* Fixes queue overflow with resize events that aren't processed */
     1.7 -        if (windowevent == SDL_WINDOWEVENT_RESIZED) {
     1.8 +        if (windowevent == SDL_WINDOWEVENT_RESIZED ||
     1.9 +            windowevent == SDL_WINDOWEVENT_SIZE_CHANGED) &&
    1.10              SDL_FilterEvents(RemovePendingSizeEvents, &event);
    1.11          }
    1.12          if (windowevent == SDL_WINDOWEVENT_MOVED) {