Commit b3d7109c authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #582

 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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403923
parent caa77344
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment