comparison src/events/SDL_active.c @ 4252:052dc40d917f SDL-1.2

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.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 27 Sep 2009 21:44:55 +0000
parents a1b03ba2fcd0
children
comparison
equal deleted inserted replaced
4251:ed5e32187eec 4252:052dc40d917f
85 85
86 /* If we lost keyboard focus, post key-up events */ 86 /* If we lost keyboard focus, post key-up events */
87 if ( (state & SDL_APPINPUTFOCUS) && !gain ) { 87 if ( (state & SDL_APPINPUTFOCUS) && !gain ) {
88 SDL_ResetKeyboard(); 88 SDL_ResetKeyboard();
89 } 89 }
90 /* If we were minimized, post button-up events */
91 if ( (state & SDL_APPACTIVE) && !gain ) {
92 SDL_ResetMouse();
93 }
90 return(posted); 94 return(posted);
91 } 95 }