mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
small fix, default width/height 0
This commit is contained in:
parent
b76dcf6e0f
commit
f6e002fb8b
2 changed files with 4 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue