1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04: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:
Simon Effenberg 2014-12-23 12:01:31 +01:00
parent d5dee1632d
commit d987897c0b

View File

@ -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;