Disable X11 screensavers.
This commit is contained in:
@@ -417,6 +417,12 @@ RageDisplay_OGL::RageDisplay_OGL( VideoModeParams p, bool bAllowUnacceleratedRen
|
||||
void RageDisplay_OGL::Update(float fDeltaTime)
|
||||
{
|
||||
wind->Update(fDeltaTime);
|
||||
|
||||
#if defined(unix)
|
||||
/* Disable the screensaver. */
|
||||
ASSERT( g_X11Display );
|
||||
XForceScreenSaver( g_X11Display, ScreenSaverReset );
|
||||
#endif
|
||||
}
|
||||
|
||||
bool RageDisplay_OGL::IsSoftwareRenderer()
|
||||
|
||||
Reference in New Issue
Block a user