diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-17 12:27:26 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-17 12:27:26 +0000 |
| commit | a2774878efdbba0b1fbe576e5f564e393226e451 (patch) | |
| tree | 504a707155490c031c242d5e8c1024d6da19b304 /render.c | |
| parent | doc: foot.1: mention default value for '--log-colorize' (diff) | |
render: don't try to resize if we're shutting down
This fixes an issue where we sometimes (depends on compositor?) tried
to signal a TIOCSWINSZ and failed. This caused us to log a misleading
error message.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1486,6 +1486,9 @@ frame_callback(void *data, struct wl_callback *wl_callback, uint32_t callback_da static bool maybe_resize(struct terminal *term, int width, int height, bool force) { + if (term->is_shutting_down) + return false; + if (!term->window->is_configured) return false; |
