aboutsummaryrefslogtreecommitdiff
path: root/layout-custom.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-06-15 09:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2019-06-15 09:02:26 +0100
commit5895f1d9f742c9b4bcc1de3cf3bebe2601f673b3 (patch)
treefea3b91e3f5170eef4e4d867d9fc14b5b7c59c3d /layout-custom.c
parentfadbf497a4d0abb21e9c94a56a7b9e77572ca3ef (diff)
parent03da0ced46e0ddcfbdcc6d580d906f47279cabcd (diff)
downloadrtmux-5895f1d9f742c9b4bcc1de3cf3bebe2601f673b3.tar.gz
rtmux-5895f1d9f742c9b4bcc1de3cf3bebe2601f673b3.tar.bz2
rtmux-5895f1d9f742c9b4bcc1de3cf3bebe2601f673b3.zip
Merge branch 'obsd-master'
Diffstat (limited to 'layout-custom.c')
-rw-r--r--layout-custom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/layout-custom.c b/layout-custom.c
index 4d9e818b..bedcaf10 100644
--- a/layout-custom.c
+++ b/layout-custom.c
@@ -122,7 +122,7 @@ layout_parse(struct window *w, const char *layout)
{
struct layout_cell *lc, *lcchild;
struct window_pane *wp;
- u_int npanes, ncells, sx, sy;
+ u_int npanes, ncells;
u_short csum;
/* Check validity. */
@@ -153,8 +153,7 @@ layout_parse(struct window *w, const char *layout)
layout_destroy_cell(w, lcchild, &lc);
}
- /* Save the old window size and resize to the layout size. */
- sx = w->sx; sy = w->sy;
+ /* Resize to the layout size. */
window_resize(w, lc->sx, lc->sy);
/* Destroy the old layout and swap to the new. */