summaryrefslogtreecommitdiffstats
path: root/layout-set.c
diff options
context:
space:
mode:
authornicm <nicm>2017-12-31 20:00:44 +0000
committernicm <nicm>2017-12-31 20:00:44 +0000
commitc9896d9554b1d431f83ac06307451bd79fab03d8 (patch)
tree5d4a63799ab500d06a9090480ed86b62dbb6ec03 /layout-set.c
parent299c552e33c3bb929a522dd166bee29c4617885f (diff)
Initialize the size of new panes created by the even-* layout correctly;
reported by Andreas Kahari and Anton Lindqvist.
Diffstat (limited to 'layout-set.c')
-rw-r--r--layout-set.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/layout-set.c b/layout-set.c
index 0f01cbcc..5055f672 100644
--- a/layout-set.c
+++ b/layout-set.c
@@ -138,6 +138,8 @@ layout_set_even(struct window *w, enum layout_type type)
TAILQ_FOREACH(wp, &w->panes, entry) {
lcnew = layout_create_cell(lc);
layout_make_leaf(lcnew, wp);
+ lcnew->sx = w->sx;
+ lcnew->sy = w->sy;
TAILQ_INSERT_TAIL(&lc->cells, lcnew, entry);
}