diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-20 04:57:01 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-20 04:57:01 -0700 |
commit | f6e002fb8b664d80ef10126f6a204ffbb2f192df (patch) | |
tree | 32fae9211bd6df4c4ecfd501703faedf83c14477 /sway/container.c | |
parent | b76dcf6e0fb9cec1bc966b5a4ab764cd9c61bd48 (diff) |
small fix, default width/height 0
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sway/container.c b/sway/container.c index c9163784..59dc9e62 100644 --- a/sway/container.c +++ b/sway/container.c @@ -172,13 +172,8 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { view->visible = true; view->is_focused = true; //Setup geometry - view->width = sibling->parent->width; - view->height = sibling->parent->height; - if (sibling->parent->layout == L_HORIZ) { - view->width /= sibling->parent->children->length; - } else { - view->height /= sibling->parent->children->length; - } + view->width = 0; + view->height = 0; view->gaps = config->gaps_inner; |