render: call render_csd() from render_resize(), not render_grid()

The CSDs doesn't need to be re-drawn each time we redraw the grid,
only when the window is resized.
This commit is contained in:
Daniel Eklöf 2020-02-25 19:09:49 +01:00
parent 70ce7245c6
commit d3c7d25dae
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -740,9 +740,6 @@ grid_render(struct terminal *term)
gettimeofday(&start_time, NULL);
#endif
if (term->window->use_csd)
render_csd(term);
assert(term->width > 0);
assert(term->height > 0);
@ -1244,6 +1241,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
damage_view:
tll_free(term->normal.scroll_damage);
tll_free(term->alt.scroll_damage);
render_csd(term);
term->render.last_buf = NULL;
term_damage_view(term);
render_refresh(term);