- screensaver: move more repeatedly used code to screensaver's code

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-25 09:58:55 +01:00
committed by Thilo Graf
parent c963587a0f
commit 81b82668ac
4 changed files with 11 additions and 5 deletions

View File

@@ -314,6 +314,13 @@ void CScreenSaver::paint()
}
}
bool CScreenSaver::canStart()
{
if (g_settings.screensaver_delay && (time(NULL) - idletime > g_settings.screensaver_delay*60))
return true;
return false;
}
bool CScreenSaver::isActive()
{
if(thrScreenSaver)