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

View file

@ -715,8 +715,7 @@ render_resize(struct terminal *term, int width, int height)
term_damage_all(term);
term_damage_view(term);
if (term->frame_callback == NULL)
grid_render(term);
render_refresh(term);
}
void
@ -751,3 +750,10 @@ render_update_cursor_surface(struct terminal *term)
wl_surface_commit(term->wl.pointer.surface);
}
void
render_refresh(struct terminal *term)
{
if (term->frame_callback == NULL)
grid_render(term);
}