summaryrefslogtreecommitdiff
path: root/sway/tree/arrange.c
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-05-01 15:31:02 +0100
committerGitHub <[email protected]>2018-05-01 15:31:02 +0100
commit0e51c7be449dd68025d5acd8c634f8dcacb10a16 (patch)
treec2c7e713a150c7f9a947b100e0fa4c56efb5c3b2 /sway/tree/arrange.c
parentbf0603cd2d905554cc57d121b56b6708bb1d382b (diff)
parentcb07434913b89580a4025824cb181733b2db1eb7 (diff)
Merge pull request #1874 from RyanDwyer/borders
Implement borders
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r--sway/tree/arrange.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c
index e1f3ad13..83bb20fb 100644
--- a/sway/tree/arrange.c
+++ b/sway/tree/arrange.c
@@ -174,12 +174,7 @@ void arrange_children_of(struct sway_container *parent) {
}
if (workspace->sway_workspace->fullscreen) {
// Just arrange the fullscreen view and jump out
- struct sway_container *view =
- workspace->sway_workspace->fullscreen->swayc;
- view_configure(view->sway_view, 0, 0,
- workspace->parent->width, workspace->parent->height);
- view->width = workspace->parent->width;
- view->height = workspace->parent->height;
+ view_autoconfigure(workspace->sway_workspace->fullscreen);
return;
}
@@ -204,8 +199,7 @@ void arrange_children_of(struct sway_container *parent) {
for (int i = 0; i < parent->children->length; ++i) {
struct sway_container *child = parent->children->items[i];
if (child->type == C_VIEW) {
- view_configure(child->sway_view, child->x, child->y,
- child->width, child->height);
+ view_autoconfigure(child->sway_view);
} else {
arrange_children_of(child);
}