From 3882f0332b0ada506494254e79283beab591f1e1 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 3 Apr 2022 17:22:07 -0700 Subject: [PATCH] Inhibit screen saver --- aurora/lib/aurora.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aurora/lib/aurora.cpp b/aurora/lib/aurora.cpp index 4a33c353c..a638a2ffe 100644 --- a/aurora/lib/aurora.cpp +++ b/aurora/lib/aurora.cpp @@ -237,6 +237,10 @@ void app_run(std::unique_ptr app, Icon icon, int argc, char** argv) SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); #endif SDL_SetHint(SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE, "1"); + + SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, "Metaforce"); + + SDL_DisableScreenSaver(); /* TODO: Make this an option rather than hard coding it */ SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,"1"); @@ -363,6 +367,7 @@ void app_run(std::unique_ptr app, Icon icon, int argc, char** argv) gfx::shutdown(); gpu::shutdown(); SDL_DestroyWindow(g_window); + SDL_EnableScreenSaver(); SDL_Quit(); }