mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-10 04:27:45 -05:00
term/render: check for is_shutting_down in grid_render()
This commit is contained in:
parent
4c924ab14a
commit
0efcb66f3a
2 changed files with 3 additions and 3 deletions
3
render.c
3
render.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue