mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-25 09:05:47 -04:00
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:
parent
7eba345acf
commit
a2774878ef
1 changed files with 3 additions and 0 deletions
3
render.c
3
render.c
|
|
@ -1486,6 +1486,9 @@ frame_callback(void *data, struct wl_callback *wl_callback, uint32_t callback_da
|
||||||
static bool
|
static bool
|
||||||
maybe_resize(struct terminal *term, int width, int height, bool force)
|
maybe_resize(struct terminal *term, int width, int height, bool force)
|
||||||
{
|
{
|
||||||
|
if (term->is_shutting_down)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!term->window->is_configured)
|
if (!term->window->is_configured)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue