Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
src/events/SDL_windowevents.c
|
@@ -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) { |
|
|