mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 18:56:21 +00:00
fix idle calculation if not using LIBXSS
the inp_get_char was never returning ERR even without getting any input so the idle timeout stuff was wasting CPU and wasn't working if LIBXSS wasn't used.
This commit is contained in:
@@ -178,7 +178,7 @@ static wint_t
|
||||
_ui_get_char(char *input, int *size, int *result)
|
||||
{
|
||||
wint_t ch = inp_get_char(input, size, result);
|
||||
if (ch != ERR) {
|
||||
if (ch != ERR && *result != ERR) {
|
||||
ui_reset_idle_time();
|
||||
}
|
||||
return ch;
|
||||
|
||||
Reference in New Issue
Block a user