Skip to content

Commit de7dcf2

Browse files
committed
SDL2: Clicking the red X now does something: you can leave!!!
If it sucks.... hit da bricks!! real winners quit
1 parent d06babd commit de7dcf2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

code/sdl/sdl_input.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ static void IN_ProcessEvents( void )
12041204
case SDL_WINDOWEVENT_MAXIMIZED: Cvar_SetValue( "com_minimized", 0 ); break;
12051205
case SDL_WINDOWEVENT_FOCUS_LOST: Cvar_SetValue( "com_unfocused", 1 ); break;
12061206
case SDL_WINDOWEVENT_FOCUS_GAINED: Cvar_SetValue( "com_unfocused", 0 ); break;
1207+
case SDL_WINDOWEVENT_CLOSE: Cbuf_ExecuteText(EXEC_NOW, "quit Closed window\n"); break;
12071208
}
12081209
break;
12091210
#else

0 commit comments

Comments
 (0)