Avoid not exiting on unlocked screen with constant keyboard activity
This commit is contained in:
parent
6cea681f6f
commit
fbcb69a855
@ -94,6 +94,9 @@ func (af *AfterLock) hybernateDisplayLoop() {
|
|||||||
|
|
||||||
for {
|
for {
|
||||||
time.Sleep(time.Duration(af.LoopDelay) * time.Second)
|
time.Sleep(time.Duration(af.LoopDelay) * time.Second)
|
||||||
|
if !af.screenLocked() {
|
||||||
|
return
|
||||||
|
}
|
||||||
if af.keypressFlag.Get() {
|
if af.keypressFlag.Get() {
|
||||||
af.keypressFlag.Set(false)
|
af.keypressFlag.Set(false)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user