diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:27:14 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:27:14 +0000 |
| commit | 0efcb66f3a71488f258f6580142d1a07f4bc2868 (patch) | |
| tree | 47319b6028fa7b63a31a2d9f5563de56201c3fed | |
| parent | main: verify locale is UTF-8 (diff) | |
term/render: check for is_shutting_down in grid_render()
| -rw-r--r-- | render.c | 3 | ||||
| -rw-r--r-- | terminal.c | 3 |
2 files changed, 3 insertions, 3 deletions
@@ -439,6 +439,9 @@ static const struct wl_callback_listener frame_listener = { void grid_render(struct terminal *term) { + if (term->is_shutting_down) + return; + #define TIME_FRAME_RENDERING 0 #if TIME_FRAME_RENDERING @@ -308,9 +308,6 @@ term_arm_blink_timer(struct terminal *term) static void cursor_refresh(struct terminal *term) { - if (term->is_shutting_down) - return; - term->grid->cur_row->cells[term->cursor.point.col].attrs.clean = 0; term->grid->cur_row->dirty = true; render_refresh(term); |
