render: add render_refresh()

This commit is contained in:
Daniel Eklöf 2019-07-24 20:09:49 +02:00
parent 10a7b94804
commit ebf0a11fa0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 16 additions and 16 deletions

9
main.c
View file

@ -716,8 +716,7 @@ main(int argc, char *const *argv)
if (ret == 0 || (timeout_ms != -1 && !(fds[1].revents & POLLIN))) {
/* Delayed rendering */
if (term.frame_callback == NULL)
grid_render(&term);
render_refresh(&term);
}
/* Reset poll timeout to infinity */
@ -809,8 +808,7 @@ main(int argc, char *const *argv)
term.flash.active = false;
term_damage_view(&term);
if (term.frame_callback == NULL)
grid_render(&term);
render_refresh(&term);
}
if (fds[4].revents & POLLIN) {
@ -838,8 +836,7 @@ main(int argc, char *const *argv)
}
}
if (term.frame_callback == NULL)
grid_render(&term);
render_refresh(&term);
}
}