Initialize the size of new panes created by the even-* layout correctly;

reported by Andreas Kahari and Anton Lindqvist.
This commit is contained in:
nicm 2017-12-31 20:00:44 +00:00
parent 299c552e33
commit c9896d9554

View File

@ -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);
}