Avoid not exiting on unlocked screen with constant keyboard activity

This commit is contained in:
Kristóf Tóth 2020-09-08 15:45:50 +02:00
parent 6cea681f6f
commit fbcb69a855
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ func (af *AfterLock) hybernateDisplayLoop() {
for {
time.Sleep(time.Duration(af.LoopDelay) * time.Second)
if !af.screenLocked() {
return
}
if af.keypressFlag.Get() {
af.keypressFlag.Set(false)
continue