summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index b14ba2c..c3d2cd0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;