From dd7322f89a713c8c3007208a1bd174abd8aa9652 Mon Sep 17 00:00:00 2001 From: cmf028 Date: Fri, 20 Sep 2013 20:06:28 -0500 Subject: Set com_minimized to 0 when the window is restored --- src/sdl/sdl_input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sdl') 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; -- cgit