From 5488e0bf3dec842a7ef742deeba73adb04a8414f Mon Sep 17 00:00:00 2001 From: pepper-jelly <45047877+pepper-jelly@users.noreply.github.com> Date: Sat, 12 Nov 2022 01:18:28 +0300 Subject: [PATCH] prevent screensaver (#1485) --- src/frontend/qt_sdl/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 7a816987ee..5074bab095 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -3285,6 +3285,9 @@ int main(int argc, char** argv) } SDL_JoystickEventState(SDL_ENABLE); + + SDL_InitSubSystem(SDL_INIT_VIDEO); + SDL_EnableScreenSaver(); SDL_DisableScreenSaver(); Config::Load();