aboutsummaryrefslogtreecommitdiff
path: root/layout-set.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-04-04 13:02:37 +0100
committerThomas Adam <thomas@xteddy.org>2019-04-04 13:02:37 +0100
commit5a97af7961d30fc1c9debb792e85ecc89402cf49 (patch)
tree994dd79f7e5f97063188fbe4f241b7f942c6a3d8 /layout-set.c
parentcb039b986ec2400439410a1cf983bd0a5ef4f9ca (diff)
parentf4aefb738ec1444842b476f98c45068bfef6f460 (diff)
downloadrtmux-5a97af7961d30fc1c9debb792e85ecc89402cf49.tar.gz
rtmux-5a97af7961d30fc1c9debb792e85ecc89402cf49.tar.bz2
rtmux-5a97af7961d30fc1c9debb792e85ecc89402cf49.zip
Merge branch 'obsd-master'
Diffstat (limited to 'layout-set.c')
-rw-r--r--layout-set.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/layout-set.c b/layout-set.c
index b9769ed5..d99453c2 100644
--- a/layout-set.c
+++ b/layout-set.c
@@ -450,8 +450,7 @@ layout_set_tiled(struct window *w)
/* Free old tree and create a new root. */
layout_free(w);
lc = w->layout_root = layout_create_cell(NULL);
- layout_set_size(lc, (width + 1) * columns - 1,
- (height + 1) * rows - 1, 0, 0);
+ layout_set_size(lc, w->sx, w->sy, 0, 0);
layout_make_node(lc, LAYOUT_TOPBOTTOM);
/* Create a grid of the cells. */