Skip to content

Commit

Permalink
Fixed bug #582
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
slouken committed Sep 27, 2009
1 parent 130b27c commit 933602e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/events/SDL_active.c
Expand Up @@ -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);
}

0 comments on commit 933602e

Please sign in to comment.