mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-24 14:41:53 +00:00
[client] allow the screensaver to run
This commit is contained in:
parent
22238c3200
commit
97024041f3
2 changed files with 4 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-rc5-0-g780bb248f7+1
|
B1-rc5-1-g22238c3200+1
|
|
@ -1073,7 +1073,10 @@ int run()
|
||||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
||||||
|
|
||||||
if (!params.noScreensaver)
|
if (!params.noScreensaver)
|
||||||
|
{
|
||||||
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
|
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
|
||||||
|
SDL_EnableScreenSaver();
|
||||||
|
}
|
||||||
|
|
||||||
if (!params.center)
|
if (!params.center)
|
||||||
SDL_SetWindowPosition(state.window, params.x, params.y);
|
SDL_SetWindowPosition(state.window, params.x, params.y);
|
||||||
|
|
Loading…
Reference in a new issue