From b79d3b31b3fe67a9ad9162b0c5df679c4c962c6d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 17 Mar 2019 00:20:47 -0700 Subject: [PATCH] Disable minimize on focus loss by default --- app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 8620e6d5..fe0b431c 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -418,6 +418,9 @@ int main(int argc, char *argv[]) // it manually when we start streaming. SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "0"); + // Disable minimize on focus loss by default. Users seem to want this off by default. + SDL_SetHintWithPriority(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0", SDL_HINT_DEFAULT); + int err = app.exec(); // Give worker tasks time to properly exit. Fixes PendingQuitTask