From 7d83bba2d02973528eaecf5f3464c2bbe9728487 Mon Sep 17 00:00:00 2001 From: cmf028 Date: Fri, 20 Sep 2013 20:06:28 -0500 Subject: [PATCH] Set com_minimized to 0 when the window is restored --- code/sdl/sdl_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index d49b2d51..520d5e81 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -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;