Disable the screensaver by default.
authorRyan C. Gordon
Thu, 27 Feb 2014 22:06:41 -0500
changeset 82651ed54c57d6c7
parent 8264 70d4dc60aa01
child 8266 d123fc5d02bc
Disable the screensaver by default.

Fixes Bugzilla #2218.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Thu Feb 27 20:21:46 2014 -0300
     1.2 +++ b/src/video/SDL_video.c	Thu Feb 27 22:06:41 2014 -0500
     1.3 @@ -504,6 +504,14 @@
     1.4          _this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
     1.5      }
     1.6  
     1.7 +    /* Disable the screen saver by default. This is a change from <= 2.0.1,
     1.8 +       but most things using SDL are games or media players; you wouldn't
     1.9 +       want a screensaver to trigger if you're playing exclusively with a
    1.10 +       joystick, or passively watching a movie. Things that use SDL but
    1.11 +       function more like a normal desktop app should explicitly reenable the
    1.12 +       screensaver. */
    1.13 +    SDL_DisableScreenSaver();
    1.14 +
    1.15      /* If we don't use a screen keyboard, turn on text input by default,
    1.16         otherwise programs that expect to get text events without enabling
    1.17         UNICODE input won't get any events.