putt: don't pause on focus loss when input not grabbed
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 19 Apr 2008 16:17:03 +0000 (16:17 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 19 Apr 2008 16:17:03 +0000 (16:17 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2080 78b8d119-cf0a-0410-b17c-f493084dd1d7

putt/main.c

index 7c80ae3..c5d0efa 100644 (file)
@@ -167,10 +167,8 @@ static int loop(void)
 
         case SDL_ACTIVEEVENT:
             if (e.active.state == SDL_APPINPUTFOCUS)
-            {
-                if (e.active.gain == 0)
+                if (e.active.gain == 0 && config_get_grab())
                     goto_pause(&st_over, 0);
-            }
             break;
 
         case SDL_JOYAXISMOTION: