Tomi Belan      2008-05-03 00:52:32 PDT

If you release a mouse button while an application is minimized, the
application won't notice it and will still report the button is pressed.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-09-27 21:44:55 +00:00
parent c705419676
commit 3d3061c5f8

View File

@@ -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);
}