src/events/SDL_windowevents.c
changeset 5524 b7f53a566ef1
parent 5398 83816c8a2b58
child 5525 e427bb6266a4
equal deleted inserted replaced
5523:6dc03727fadc 5524:b7f53a566ef1
   168         event.window.data1 = data1;
   168         event.window.data1 = data1;
   169         event.window.data2 = data2;
   169         event.window.data2 = data2;
   170         event.window.windowID = window->id;
   170         event.window.windowID = window->id;
   171 
   171 
   172         /* Fixes queue overflow with resize events that aren't processed */
   172         /* Fixes queue overflow with resize events that aren't processed */
   173         if (windowevent == SDL_WINDOWEVENT_RESIZED) {
   173         if (windowevent == SDL_WINDOWEVENT_RESIZED ||
       
   174             windowevent == SDL_WINDOWEVENT_SIZE_CHANGED) &&
   174             SDL_FilterEvents(RemovePendingSizeEvents, &event);
   175             SDL_FilterEvents(RemovePendingSizeEvents, &event);
   175         }
   176         }
   176         if (windowevent == SDL_WINDOWEVENT_MOVED) {
   177         if (windowevent == SDL_WINDOWEVENT_MOVED) {
   177             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   178             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   178         }
   179         }