mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Set com_minimized to 0 when the window is restored
This commit is contained in:
parent
d7444b8ca1
commit
7d83bba2d0
1 changed files with 1 additions and 0 deletions
|
@ -836,6 +836,7 @@ static void IN_ProcessEvents( void )
|
|||
break;
|
||||
|
||||
case SDL_WINDOWEVENT_MINIMIZED: Cvar_SetValue( "com_minimized", 1 ); break;
|
||||
case SDL_WINDOWEVENT_RESTORED:
|
||||
case SDL_WINDOWEVENT_MAXIMIZED: Cvar_SetValue( "com_minimized", 0 ); break;
|
||||
case SDL_WINDOWEVENT_FOCUS_LOST: Cvar_SetValue( "com_unfocused", 1 ); break;
|
||||
case SDL_WINDOWEVENT_FOCUS_GAINED: Cvar_SetValue( "com_unfocused", 0 ); break;
|
||||
|
|
Loading…
Reference in a new issue