[client] allow the screensaver to run

This commit is contained in:
Geoffrey McRae 2019-05-30 20:54:39 +10:00
parent 22238c3200
commit 97024041f3
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
B1-rc5-0-g780bb248f7+1
B1-rc5-1-g22238c3200+1

View File

@ -1073,7 +1073,10 @@ int run()
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
if (!params.noScreensaver)
{
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
SDL_EnableScreenSaver();
}
if (!params.center)
SDL_SetWindowPosition(state.window, params.x, params.y);