version 1.13, 2019/06/12 08:08:33 |
version 1.14, 2019/06/15 06:33:48 |
|
|
{ |
{ |
struct layout_cell *lc, *lcchild; |
struct layout_cell *lc, *lcchild; |
struct window_pane *wp; |
struct window_pane *wp; |
u_int npanes, ncells, sx, sy; |
u_int npanes, ncells; |
u_short csum; |
u_short csum; |
|
|
/* Check validity. */ |
/* Check validity. */ |
|
|
layout_destroy_cell(w, lcchild, &lc); |
layout_destroy_cell(w, lcchild, &lc); |
} |
} |
|
|
/* Save the old window size and resize to the layout size. */ |
/* Resize to the layout size. */ |
sx = w->sx; sy = w->sy; |
|
window_resize(w, lc->sx, lc->sy); |
window_resize(w, lc->sx, lc->sy); |
|
|
/* Destroy the old layout and swap to the new. */ |
/* Destroy the old layout and swap to the new. */ |