]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
thanks
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Jul 2009 15:26:29 +0000 (15:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Jul 2009 15:26:29 +0000 (15:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9050 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 2ab7be84cb6f65b809c6fb80f493b9d9eac510d9..56d1ad6129505c5701d37550b388d899d0baebf4 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -373,7 +373,7 @@ void Sys_SendKeyEvents( void )
                                Key_Event( MapKey( event.key.keysym.sym ), (char)event.key.keysym.unicode, (event.key.state == SDL_PRESSED) );
                                break;
                        case SDL_ACTIVEEVENT:
-                               if( event.active.state == SDL_APPACTIVE )
+                               if( event.active.state & SDL_APPACTIVE )
                                {
                                        if( event.active.gain )
                                                vid_hidden = false;