diff options
author | cmf028 <cmf1292@hotmail.com> | 2013-09-20 20:06:28 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:03:29 +0100 |
commit | dd7322f89a713c8c3007208a1bd174abd8aa9652 (patch) | |
tree | ab060f2149b4620653894a54a77e2f657eb3649f /src/sdl | |
parent | 28752e10a1f51bf614d2f21a0d0993d141f940e0 (diff) |
Set com_minimized to 0 when the window is restored
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 39653bd4..a369799a 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -884,6 +884,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; |