Commit b7050718 authored by Sam Lantinga's avatar Sam Lantinga

Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too

parent 8e668b06
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment