alt + tab does not minimize window in fullscreen mode

This commit is contained in:
drian
2021-03-22 09:02:27 +01:00
parent 44565a9cb7
commit e2af70a81a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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
+4 -2
View File
@@ -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;