alt + tab does not minimize window in fullscreen mode
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user