ref: 308407dc6e46640c3e36049aad7ad6a84ddfdc2a
parent: 61d48161028418fef70fe982804f744b7791093b
author: cinap_lenrek <[email protected]>
date: Sun Dec 3 01:41:41 EST 2017
screenlock: have keyboard activity reset blank timeout
--- a/sys/src/cmd/screenlock.c
+++ b/sys/src/cmd/screenlock.c
@@ -24,7 +24,7 @@
int i;
i = 0;
- while(i < nbuf-1)
+ while(i < nbuf-1){
if(read(0, &c, 1) != 1 || c == '\04' || c == '\177'){
i = 0;
break;
@@ -36,6 +36,8 @@
i = 0;
else
buf[i++] = c;
+ blank = time(0);
+ }
buf[i] = '\0';
}
@@ -62,8 +64,6 @@
break;
auth_freeAI(ai);
- blank = time(0);
-
border(screen, screen->r, 8, display->black, ZP);
flushimage(display, 1);
}