From dc524bb30acc3f4020812c922d2ca1ca6c774c2f Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Mon, 27 Aug 2007 21:45:13 +0000 Subject: [PATCH] use the new SDL 1.2.12 env variable to allow the OS to launch the screensaver when sheepshaver is running - must be linking to sdl 1.2.12 or later for it to take effect --- SheepShaver/src/Unix/main_unix.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index 7d30826a..d3bae8b5 100644 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -371,6 +371,11 @@ int main(int argc, char **argv) time_t now, expire; bool memory_mapped_from_zero; +#ifdef USE_SDL_VIDEO + // don't let SDL block the screensaver + setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 1); +#endif + // Initialize variables RAMBase = 0; tzset();