Implement some more on borders

Note that this segfaults ALL THE TIME in wlc code. Paging @Cloudef for
help, I'm at a loss.
This commit is contained in:
Drew DeVault 2016-03-13 21:10:46 -04:00 committed by Mikkel Oscar Lyderik
parent a8e084433d
commit b903f7f655
6 changed files with 110 additions and 25 deletions

View file

@ -22,8 +22,11 @@ static swayc_t *new_swayc(enum swayc_types type) {
c->gaps = -1;
c->layout = L_NONE;
c->type = type;
c->border_type = B_PIXEL; // TODO: Load default from config
c->border_thickness = 2;
if (type != C_VIEW) {
c->children = create_list();
c->border_type = B_NONE;
}
return c;
}