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.
This commit is contained in:
Daniel Eklöf 2020-03-17 13:27:26 +01:00
parent 7eba345acf
commit a2774878ef
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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