diff --git a/src/events/SDL_active.c b/src/events/SDL_active.c index c99be0763..b1d7c1685 100644 --- a/src/events/SDL_active.c +++ b/src/events/SDL_active.c @@ -87,5 +87,9 @@ int SDL_PrivateAppActive(Uint8 gain, Uint8 state) if ( (state & SDL_APPINPUTFOCUS) && !gain ) { SDL_ResetKeyboard(); } + /* If we were minimized, post button-up events */ + if ( (state & SDL_APPACTIVE) && !gain ) { + SDL_ResetMouse(); + } return(posted); }