mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 13:16:43 -05:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user