aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/arrange.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-30 21:24:13 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-30 21:24:13 +1000
commite67f3543332349e63b5099a241fdd85ce28ea54b (patch)
tree54bede11d48f561693d1288e0980660c644b4dc3 /sway/tree/arrange.c
parentMerge pull request #1873 from RyanDwyer/remove-arrange-windows (diff)
downloadsway-e67f3543332349e63b5099a241fdd85ce28ea54b.tar.gz
sway-e67f3543332349e63b5099a241fdd85ce28ea54b.tar.zst
sway-e67f3543332349e63b5099a241fdd85ce28ea54b.zip
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.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) {
174 } 174 }
175 if (workspace->sway_workspace->fullscreen) { 175 if (workspace->sway_workspace->fullscreen) {
176 // Just arrange the fullscreen view and jump out 176 // Just arrange the fullscreen view and jump out
177 struct sway_container *view = 177 view_autoconfigure(workspace->sway_workspace->fullscreen);
178 workspace->sway_workspace->fullscreen->swayc;
179 view_configure(view->sway_view, 0, 0,
180 workspace->parent->width, workspace->parent->height);
181 view->width = workspace->parent->width;
182 view->height = workspace->parent->height;
183 return; 178 return;
184 } 179 }
185 180
@@ -204,8 +199,7 @@ void arrange_children_of(struct sway_container *parent) {
204 for (int i = 0; i < parent->children->length; ++i) { 199 for (int i = 0; i < parent->children->length; ++i) {
205 struct sway_container *child = parent->children->items[i]; 200 struct sway_container *child = parent->children->items[i];
206 if (child->type == C_VIEW) { 201 if (child->type == C_VIEW) {
207 view_configure(child->sway_view, child->x, child->y, 202 view_autoconfigure(child->sway_view);
208 child->width, child->height);
209 } else { 203 } else {
210 arrange_children_of(child); 204 arrange_children_of(child);
211 } 205 }