From ac32352f09137c4ecbc260737a53a25f402f0ef4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 27 Feb 2014 22:06:41 -0500 Subject: [PATCH] Disable the screensaver by default. Fixes Bugzilla #2218. --- src/video/SDL_video.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 338a4cc96da17..dcce0822d9a5e 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -504,6 +504,14 @@ SDL_VideoInit(const char *driver_name) _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture; } + /* Disable the screen saver by default. This is a change from <= 2.0.1, + but most things using SDL are games or media players; you wouldn't + want a screensaver to trigger if you're playing exclusively with a + joystick, or passively watching a movie. Things that use SDL but + function more like a normal desktop app should explicitly reenable the + screensaver. */ + SDL_DisableScreenSaver(); + /* If we don't use a screen keyboard, turn on text input by default, otherwise programs that expect to get text events without enabling UNICODE input won't get any events.