diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -147,7 +147,8 @@ int main( int argc, char **argv ) } } // If this file exists, the user doesn't want screen saver or DPMS to trigger - const bool useSaver = ( usr->saverFile[0] == '-' || access( usr->saverFile, F_OK ) == -1 ); + const bool useSaver = ( config.saverTimeout > 0 || config.dpmsTimeout > 0 ) + && ( usr->saverFile[0] == '-' || access( usr->saverFile, F_OK ) == -1 ); const int idleTime = NOW - ( usr->lastActivity + usr->lastActivityOffset ); if ( config.dpmsTimeout > 0 && screen.screenStandby != SCREEN_UNKNOWN ) { int want = SCREEN_UNKNOWN; |