diff options
author | nicm <nicm> | 2019-06-12 08:08:33 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-12 08:08:33 +0000 |
commit | 9d42bd328c094c679415c623f7a87c200b64984e (patch) | |
tree | b15f039b5e4cf6d080f6f0a6143d371c86ea9721 | |
parent | 1a9f9c09b4bcc9f99f10190ab91f1aea5206809b (diff) | |
download | rtmux-9d42bd328c094c679415c623f7a87c200b64984e.tar.gz rtmux-9d42bd328c094c679415c623f7a87c200b64984e.tar.bz2 rtmux-9d42bd328c094c679415c623f7a87c200b64984e.zip |
Do not always resize the window back to its original size after applying
a layout, let the normal window resize process do it. This means windows
are not resized at all if window-size is manual, and are not resized
multiple times if later attached to a different size terminal.
-rw-r--r-- | layout-custom.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/layout-custom.c b/layout-custom.c index 9886afe1..4d9e818b 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -168,10 +168,7 @@ layout_parse(struct window *w, const char *layout) /* Update pane offsets and sizes. */ layout_fix_offsets(lc); layout_fix_panes(w); - - /* Then resize the layout back to the original window size. */ - layout_resize(w, sx, sy); - window_resize(w, sx, sy); + recalculate_sizes(); layout_print_cell(lc, __func__, 0); |