From 964a0ed381fbecde42ddc04395765199273bbf9a Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Sat, 23 Sep 2023 20:51:09 +0200 Subject: [PATCH] SDL: Default to no keyboard grab on Windows. This is the default on Linux, and incidentally used to be the default on Windows as well, until vcpkg got introduced which brought a modern SDL version with support for keyboard grabbing. --- src/vid_sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vid_sdl2.c b/src/vid_sdl2.c index e47428c82..e90899b51 100644 --- a/src/vid_sdl2.c +++ b/src/vid_sdl2.c @@ -191,7 +191,7 @@ cvar_t vid_minimize_on_focus_loss = {"vid_minimize_on_focus_loss", CVAR_DEF1, CV // TODO: Move the in_* cvars cvar_t in_raw = {"in_raw", "1", CVAR_ARCHIVE | CVAR_SILENT, in_raw_callback}; cvar_t in_grab_windowed_mouse = {"in_grab_windowed_mouse", "1", CVAR_ARCHIVE | CVAR_SILENT, in_grab_windowed_mouse_callback}; -cvar_t vid_grab_keyboard = {"vid_grab_keyboard", CVAR_DEF2, CVAR_LATCH_GFX }; /* Needs vid_restart thus vid_.... */ +cvar_t vid_grab_keyboard = {"vid_grab_keyboard", "0", CVAR_LATCH_GFX }; /* Needs vid_restart thus vid_.... */ #ifdef EZ_MULTIPLE_RENDERERS cvar_t vid_renderer = {"vid_renderer", "1", CVAR_LATCH_GFX }; #endif