summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2023-10-23 08:12:00 +0000
committernicm <nicm>2023-10-23 08:12:00 +0000
commit36e1ac65560a34c6fa381f821f6b1b733f9b6ed6 (patch)
tree73d3a4044b809eee1b03ab3af2975105fae64727 /window.c
parentffa376edf7df3858ae8dc5f606a024c365c0f804 (diff)
Unzoom window at start of destroy so it doesn't happen later (when
destroying panes) after the layout has been freed, GitHub issue 3717.
Diffstat (limited to 'window.c')
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index c1365993..c16dc128 100644
--- a/window.c
+++ b/window.c
@@ -340,6 +340,7 @@ window_destroy(struct window *w)
{
log_debug("window @%u destroyed (%d references)", w->id, w->references);
+ window_unzoom(w);
RB_REMOVE(windows, &windows, w);
if (w->layout_root != NULL)