diff options
author | nicm <nicm> | 2019-04-04 10:25:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-04 18:31:35 +0100 |
commit | 73b54a0e5fa14736d1b7fbac997dd5b12c6940fb (patch) | |
tree | 45b0c48bedb080abd02cbba9781022f59536d0d9 /layout-set.c | |
parent | 481c3f3f2ea5de650da836cd9684a2d1a2cb2c33 (diff) | |
download | rtmux-73b54a0e5fa14736d1b7fbac997dd5b12c6940fb.tar.gz rtmux-73b54a0e5fa14736d1b7fbac997dd5b12c6940fb.tar.bz2 rtmux-73b54a0e5fa14736d1b7fbac997dd5b12c6940fb.zip |
Fix size check for splitw -f and top level pane size for tiled layout,
problems reported by Thomas Sattler.
Diffstat (limited to 'layout-set.c')
-rw-r--r-- | layout-set.c | 3 |
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. */ |