mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +00:00
Change layout sets to build the layout using the new mechanics, from
Dane Jensen.
This commit is contained in:
6
window.c
6
window.c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user