diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-20 08:07:16 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-20 08:07:16 -0400 |
commit | 95f5660897b6640f13623178651f45549a917efb (patch) | |
tree | 0811a259f740cfc7185974c87fbdaa40e9a956e6 /sway/container.c | |
parent | 85ae987515a9227bde15c736a941d5ee59e49dc3 (diff) | |
parent | f6e002fb8b664d80ef10126f6a204ffbb2f192df (diff) |
Merge pull request #97 from taiyu-len/master
setup for resizable windows, drop weight
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index dee4028d..0e247393 100644 --- a/sway/container.c +++ b/sway/container.c @@ -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; |