Change layout sets to build the layout using the new mechanics, from

Dane Jensen.
This commit is contained in:
nicm
2026-07-01 16:43:14 +00:00
parent 565db46a19
commit 824ef37f5f
6 changed files with 178 additions and 192 deletions

View File

@@ -359,8 +359,8 @@ window_destroy(struct window *w)
window_unzoom(w, 0);
RB_REMOVE(windows, &windows, w);
layout_free_cell(w->layout_root);
layout_free_cell(w->saved_layout_root);
layout_free_cell(w->layout_root, 0);
layout_free_cell(w->saved_layout_root, 0);
free(w->old_layout);
window_destroy_panes(w);
@@ -778,7 +778,7 @@ window_unzoom(struct window *w, int notify)
return (-1);
w->flags &= ~WINDOW_ZOOMED;
layout_free(w);
layout_free(w, 0);
w->layout_root = w->saved_layout_root;
w->saved_layout_root = NULL;