aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-10 07:56:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-10 07:56:15 +0000
commit94fdde3da7a2f5311032dc1e0d6886eff756630d (patch)
tree90d9b4c1ffb01593eacac6b1e17695eadb1a4226
parentscrollback: fix off-by-one when grid size matches terminal/window size (diff)
main: hopefully fix logical error in delayed rendering
We want the timeout_ms to *not* be -1 (i.e. someone has requested delayed rendering), while we're *not* getting client output.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index e454e103..dd16d277 100644
--- a/main.c
+++ b/main.c
@@ -495,7 +495,7 @@ main(int argc, char *const *argv)
break;
}
- if (ret == 0 || !(timeout_ms != -1 && fds[1].revents & POLLIN)) {
+ if (ret == 0 || (timeout_ms != -1 && !(fds[1].revents & POLLIN))) {
/* Delayed rendering */
if (term.frame_callback == NULL)
grid_render(&term);