From ebd2ebceb45c6b793a55c7cfd4877ff2d07bb96c Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sat, 15 Aug 2026 09:47:58 -0700 Subject: [PATCH] sdl: allow screensaver SDL defaults to disabling the screensaver, which on macOS hosts also means that the display or machine will not sleep. This is appropriate for games, but not for a regular windowed application like DingusPPC (if a session is left running in the background). --- main_sdl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_sdl.cpp b/main_sdl.cpp index baaf135ec8..5f2b734088 100644 --- a/main_sdl.cpp +++ b/main_sdl.cpp @@ -35,6 +35,8 @@ bool init() { return false; } + SDL_EnableScreenSaver(); + int num_joysticks = SDL_NumJoysticks(); for (int i = 0; i < num_joysticks; ++i) { if (SDL_IsGameController(i)) {