diff -r 96b428ac11f2 -r 806c3b55500d hedgewars/hwengine.dpr --- a/hedgewars/hwengine.dpr Thu Jan 04 18:54:24 2007 +0000 +++ b/hedgewars/hwengine.dpr Sun Jan 07 16:53:16 2007 +0000 @@ -135,6 +135,8 @@ end; gsConsole: KeyPressConsole(event.key.keysym.sym); end; + SDL_ACTIVEEVENT: if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then + cHasFocus:= event.active.gain = 1; SDL_QUITEV: isTerminated:= true end; CurrTime:= SDL_GetTicks;