mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-17 20:11:17 +00:00
[client] allow the screensaver to run
This commit is contained in:
parent
22238c3200
commit
97024041f3
@ -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…
x
Reference in New Issue
Block a user