mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
render: call wl_display_flush() after rendering
This allows us to remove that call from the main event loop.
This commit is contained in:
parent
b793919aba
commit
291a928a49
2 changed files with 2 additions and 1 deletions
1
main.c
1
main.c
|
|
@ -147,7 +147,6 @@ main(int argc, char *const *argv)
|
|||
goto out;
|
||||
|
||||
while (tll_length(wayl->terms) > 0) {
|
||||
wl_display_flush(wayl->display); /* TODO: figure out how to get rid of this */
|
||||
|
||||
if (!fdm_poll(fdm))
|
||||
break;
|
||||
|
|
|
|||
2
render.c
2
render.c
|
|
@ -693,6 +693,7 @@ grid_render(struct terminal *term)
|
|||
|
||||
if (all_clean) {
|
||||
buf->busy = false;
|
||||
wl_display_flush(term->wl->display);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -727,6 +728,7 @@ grid_render(struct terminal *term)
|
|||
LOG_INFO("frame rendered in %lds %ldus",
|
||||
render_time.tv_sec, render_time.tv_usec);
|
||||
#endif
|
||||
wl_display_flush(term->wl->display);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue