From d1bd5b3115f228d79432341c4f3f9b748452c04c Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Fri, 15 Dec 2017 04:27:53 +0200 Subject: [PATCH] Do not minimize fullscreen window on focus loss --- client/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/main.c b/client/main.c index 3af87220..2de22bf4 100644 --- a/client/main.c +++ b/client/main.c @@ -676,6 +676,11 @@ int run() ) ); + if (params.fullscreen) + { + SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); + } + // set the compositor hint to bypass for low latency SDL_SysWMinfo wminfo; SDL_VERSION(&wminfo.version);