Skip to content

Commit

Permalink
Disable the screensaver by default.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #2218.
  • Loading branch information
icculus committed Feb 28, 2014
1 parent f61602b commit ac32352
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -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.
Expand Down

0 comments on commit ac32352

Please sign in to comment.