Re-fix: don't quit on timeout if time is stepped to past.
This commit is contained in:
parent
98373720af
commit
77444fa135
@ -656,10 +656,10 @@ void call_help() {
|
|||||||
|
|
||||||
void CheckTick(gkey quitkey) {
|
void CheckTick(gkey quitkey) {
|
||||||
|
|
||||||
Clock idle_secs = abs(gkbd.tickvalue - gkbd.tickpress) / 10L;
|
Clock idle_secs = gkbd.tickvalue > gkbd.tickpress? (gkbd.tickvalue - gkbd.tickpress / 10L) : 0;
|
||||||
|
|
||||||
if(CFG->timeout) {
|
if(CFG->timeout) {
|
||||||
if(((signed long)idle_secs > 0) and (idle_secs >= CFG->timeout)) {
|
if(idle_secs >= CFG->timeout) {
|
||||||
kbput(quitkey);
|
kbput(quitkey);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user