src/events/SDL_windowevents.c
changeset 5525 e427bb6266a4
parent 5524 b7f53a566ef1
child 5535 96594ac5fd1a
equal deleted inserted replaced
5524:b7f53a566ef1 5525:e427bb6266a4
   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             windowevent == SDL_WINDOWEVENT_SIZE_CHANGED) {
   175             SDL_FilterEvents(RemovePendingSizeEvents, &event);
   175             SDL_FilterEvents(RemovePendingSizeEvents, &event);
   176         }
   176         }
   177         if (windowevent == SDL_WINDOWEVENT_MOVED) {
   177         if (windowevent == SDL_WINDOWEVENT_MOVED) {
   178             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   178             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   179         }
   179         }