mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user