aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-03 17:06:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-03 17:06:29 +0000
commit347cda14cfb08696c2193025afd209cb48372ec9 (patch)
treed93b19fc3c71ddb2469670ea13637281a9d9fbaf /render.c
parentMerge branch 'tilde-expansion-in-include' (diff)
parentterm: send SIGTERM/SIGKILL to the entire process group (diff)
Merge branch 'async-client-termination'
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/render.c b/render.c
index 84796aa0..d338301c 100644
--- a/render.c
+++ b/render.c
@@ -2340,7 +2340,7 @@ dirty_cursor(struct terminal *term)
static void
grid_render(struct terminal *term)
{
- if (term->is_shutting_down)
+ if (term->shutdown.in_progress)
return;
struct timeval start_time, start_double_buffering = {0}, stop_double_buffering = {0};
@@ -3318,7 +3318,7 @@ send_dimensions_to_client(struct terminal *term)
static bool
maybe_resize(struct terminal *term, int width, int height, bool force)
{
- if (term->is_shutting_down)
+ if (term->shutdown.in_progress)
return false;
if (!term->window->is_configured)
@@ -3640,7 +3640,7 @@ fdm_hook_refresh_pending_terminals(struct fdm *fdm, void *data)
tll_foreach(renderer->wayl->terms, it) {
struct terminal *term = it->item;
- if (unlikely(!term->window->is_configured))
+ if (unlikely(term->shutdown.in_progress || !term->window->is_configured))
continue;
bool grid = term->render.refresh.grid;