version 1.17, 2013/03/22 10:37:39 |
version 1.18, 2013/03/24 09:57:59 |
|
|
} |
} |
|
|
void |
void |
layout_init(struct window *w) |
layout_init(struct window *w, struct window_pane *wp) |
{ |
{ |
struct layout_cell *lc; |
struct layout_cell *lc; |
|
|
lc = w->layout_root = layout_create_cell(NULL); |
lc = w->layout_root = layout_create_cell(NULL); |
layout_set_size(lc, w->sx, w->sy, 0, 0); |
layout_set_size(lc, w->sx, w->sy, 0, 0); |
layout_make_leaf(lc, TAILQ_FIRST(&w->panes)); |
layout_make_leaf(lc, wp); |
|
|
layout_fix_panes(w, w->sx, w->sy); |
layout_fix_panes(w, w->sx, w->sy); |
} |
} |