From 312b5ce66e9c8c2769adf9f70979b88800fa07d0 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 27 Oct 2021 10:48:22 -0400 Subject: [PATCH] - add SDL hint to not minimize the window on focus loss --- src/common/platform/posix/sdl/hardware.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/platform/posix/sdl/hardware.cpp b/src/common/platform/posix/sdl/hardware.cpp index ea008169e96..ce877e943f3 100644 --- a/src/common/platform/posix/sdl/hardware.cpp +++ b/src/common/platform/posix/sdl/hardware.cpp @@ -67,6 +67,7 @@ void I_InitGraphics () #ifdef __APPLE__ SDL_SetHint(SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0"); #endif // __APPLE__ + SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0) {