term/render: check for is_shutting_down in grid_render()

This commit is contained in:
Daniel Eklöf 2019-12-19 07:27:14 +01:00
parent 4c924ab14a
commit 0efcb66f3a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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);