Skip to content

Commit

Permalink
If blanking and locking at the same time, blank first
Browse files Browse the repository at this point in the history
  • Loading branch information
confluence committed Jul 22, 2024
1 parent 6c142b9 commit a33af1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/powerkit_screensaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ void ScreenSaver::timeOut()
qDebug() << "screen idle" << idle_time;
qDebug() << "screen blank timeout" << blank_time;
qDebug() << "screen lock timeout" << lock_time;
if (idle_time >= lock_time) {
Lock();
}
if (idle_time >= blank_time) {
setDisplaysOff(true);
}
if (idle_time >= lock_time) {
Lock();
}
}

void ScreenSaver::Update()
Expand Down

0 comments on commit a33af1d

Please sign in to comment.