diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 11:44:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 11:44:29 +0000 |
| commit | af26f043fb507c6aa4b6d7cf5dea39f3b9d3b234 (patch) | |
| tree | 660a9d287e7a05802fd03a52c5c1ab78a97ba122 | |
| parent | Merge branch 'master' into visual-focus (diff) | |
render: resize() now only calls refresh() if asked to
| -rw-r--r-- | render.c | 5 | ||||
| -rw-r--r-- | render.h | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -960,7 +960,7 @@ reflow(struct row **new_grid, int new_cols, int new_rows, /* Move to terminal.c? */ void -render_resize(struct terminal *term, int width, int height) +render_resize(struct terminal *term, int width, int height, bool refresh) { int scale = -1; tll_foreach(term->window->on_outputs, it) { @@ -1083,7 +1083,8 @@ render_resize(struct terminal *term, int width, int height) term->render.last_cursor.cell = NULL; term_damage_view(term); - render_refresh(term); + if (refresh) + render_refresh(term); } void @@ -6,7 +6,7 @@ struct font *attrs_to_font( const struct terminal *term, const struct attributes *attrs); void grid_render(struct terminal *term); -void render_resize(struct terminal *term, int width, int height); +void render_resize(struct terminal *term, int width, int height, bool refresh); void render_set_title(struct terminal *term, const char *title); void render_refresh(struct terminal *term); |
