# HG changeset patch # User Sam Lantinga # Date 1273446914 25200 # Node ID 363604b42e84abac7c765c59a42b6cd08f56b3c7 # Parent c0f2a1e6f0cdcad6f0fd38e25e22eeb348ce2e60 Make sure events are current before flushing them. diff -r c0f2a1e6f0cd -r 363604b42e84 src/events/SDL_events.c --- a/src/events/SDL_events.c Sun May 09 15:47:21 2010 -0700 +++ b/src/events/SDL_events.c Sun May 09 16:15:14 2010 -0700 @@ -401,6 +401,9 @@ return; } + /* Make sure the events are current */ + SDL_PumpEvents(); + /* Lock the event queue */ if (SDL_mutexP(SDL_EventQ.lock) == 0) { int spot = SDL_EventQ.head;