From 23e883f60fbf923c543fbf518bdda1ce97ef9fe3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 15:58:37 +1100 Subject: [PATCH] Revert "[client] sdl: move SDL specific screensaver inhibit" This reverts commit afb0146d333307d73feca95a57f4beecf849dd82. Additional handling is required to implement this properly, postpone this for Beta 4 --- client/displayservers/SDL/sdl.c | 3 --- client/src/main.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/displayservers/SDL/sdl.c b/client/displayservers/SDL/sdl.c index f4d01e6a..67816966 100644 --- a/client/displayservers/SDL/sdl.c +++ b/client/displayservers/SDL/sdl.c @@ -36,9 +36,6 @@ 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 4d0b186f..ba8ed0c7 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1858,6 +1858,9 @@ 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");