screenlock: have keyboard activity reset blank timeout

This commit is contained in:
cinap_lenrek 2017-12-03 06:41:41 +01:00
parent 61d4816102
commit 308407dc6e

View file

@ -24,7 +24,7 @@ readline(char *buf, int nbuf)
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 @@ readline(char *buf, int nbuf)
i = 0;
else
buf[i++] = c;
blank = time(0);
}
buf[i] = '\0';
}
@ -62,8 +64,6 @@ checkpassword(void)
break;
auth_freeAI(ai);
blank = time(0);
border(screen, screen->r, 8, display->black, ZP);
flushimage(display, 1);
}