diff --git a/client/displayservers/SDL/sdl.c b/client/displayservers/SDL/sdl.c index 67816966..f4d01e6a 100644 --- a/client/displayservers/SDL/sdl.c +++ b/client/displayservers/SDL/sdl.c @@ -36,6 +36,9 @@ static struct SDLDSState sdl; static bool sdlEarlyInit(void) { + // Allow screensavers for now: we will enable and disable as needed. + SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); + return true; } diff --git a/client/src/main.c b/client/src/main.c index bbb4f25e..e71c31a9 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1851,9 +1851,6 @@ static int lg_run(void) return -1; } - // Allow screensavers for now: we will enable and disable as needed. - SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); - if (SDL_Init(SDL_INIT_VIDEO) < 0) { DEBUG_ERROR("SDL_Init Failed");