mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04: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
|
void
|
||||||
grid_render(struct terminal *term)
|
grid_render(struct terminal *term)
|
||||||
{
|
{
|
||||||
|
if (term->is_shutting_down)
|
||||||
|
return;
|
||||||
|
|
||||||
#define TIME_FRAME_RENDERING 0
|
#define TIME_FRAME_RENDERING 0
|
||||||
|
|
||||||
#if TIME_FRAME_RENDERING
|
#if TIME_FRAME_RENDERING
|
||||||
|
|
|
||||||
|
|
@ -308,9 +308,6 @@ term_arm_blink_timer(struct terminal *term)
|
||||||
static void
|
static void
|
||||||
cursor_refresh(struct terminal *term)
|
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->cells[term->cursor.point.col].attrs.clean = 0;
|
||||||
term->grid->cur_row->dirty = true;
|
term->grid->cur_row->dirty = true;
|
||||||
render_refresh(term);
|
render_refresh(term);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue