From 0bf211b3e60c76e14e43c4ba53fb34a8b640fb69 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 ea008169e9..ce877e943f 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) {