diff options
author | Ryan Dwyer <[email protected]> | 2018-04-30 21:24:13 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-04-30 21:24:13 +1000 |
commit | e67f3543332349e63b5099a241fdd85ce28ea54b (patch) | |
tree | 54bede11d48f561693d1288e0980660c644b4dc3 /sway/tree/arrange.c | |
parent | b84dfa794c4bc24d3338995cf89fb4864ab63e99 (diff) |
Implement borders
Implements rendering of borders. Title text is still to do.
Implements the following configuration directives:
* client.focused
* client.focused_inactive
* client.unfocused
* client.urgent
* border
* default_border
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 10 |
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); } |