Merge pull request #97 from taiyu-len/master

setup for resizable windows, drop weight
This commit is contained in:
Drew DeVault 2015-08-20 08:07:16 -04:00
commit 95f5660897
5 changed files with 52 additions and 30 deletions

View file

@ -14,7 +14,6 @@ static swayc_t *new_swayc(enum swayc_types type) {
c->handle = -1;
c->layout = L_NONE;
c->type = type;
c->weight = 1;
if (type != C_VIEW) {
c->children = create_list();
}
@ -172,6 +171,9 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) {
view->name = title ? strdup(title) : NULL;
view->visible = true;
view->is_focused = true;
//Setup geometry
view->width = 0;
view->height = 0;
view->gaps = config->gaps_inner;