Diff of /xbmc/Application.cpp [a9a782] .. [0830dd]  Maximize  Restore

Repo status: analyzing...

Switch to side-by-side view

--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -559,6 +559,11 @@
   sdlFlags |= SDL_INIT_JOYSTICK;
+  //depending on how it's compiled, SDL periodically calls XResetScreenSaver when it's fullscreen
+  //this might bring the monitor out of standby, so we have to disable it explicitly
+  //by passing 0 for overwrite to setsenv, the user can still override this by setting the environment variable
+  setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 0);
 #endif // HAS_SDL