diff --git a/config/autostart/checkaccount.cfg b/config/autostart/checkaccount.cfg index e70a481f..ad4d5964 100644 --- a/config/autostart/checkaccount.cfg +++ b/config/autostart/checkaccount.cfg @@ -2,7 +2,7 @@ sleep 1000 [ checkaccount 1 ] sleep 1000 [ -echo "\fs\f3Beware: This is an ALPHA version of Assault Cube v1.3" +echo "\fs\f3Beware: This is an ALPHA version of AssaultCube v1.3" echo "\fs\f3Thank you for testing AssaultCube and helping us to release the new version!" ] 1 diff --git a/source/src/main.cpp b/source/src/main.cpp index a865d018..044c485f 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -886,12 +886,14 @@ void checkinput() case SDL_WINDOWEVENT_FOCUS_GAINED: // window has gained keyboard focus EVENTDEBUG(concatstring(eb, " SDL_WINDOWEVENT_FOCUS_GAINED")); - inputgrab(grabinput = true); // click-to-grab for windowed mode + inputgrab(grabinput = true); break; case SDL_WINDOWEVENT_FOCUS_LOST: // window has lost keyboard focus EVENTDEBUG(concatstring(eb, " SDL_WINDOWEVENT_FOCUS_LOST")); - inputgrab(grabinput = false); + grabinput = false; + // in fullscreen mode inputgrab(false) will cause the window to get focus again immediately (!) and so we skip it + if(!fullscreen) inputgrab(grabinput); break; } break;