aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-25 15:49:10 -0500
committerDrew DeVault <sir@cmpwn.com>2017-11-25 15:49:10 -0500
commita57d46292694e388d74add7b0869bcafdb42b2bd (patch)
tree74b91247e749c1b67f89bd2271f31762b659545b /sway/tree/layout.c
parentce1936bc65d01502e3a5f8681bb039cb95e82e0c (diff)
Fix rendering issues, wire up some xdg listeners
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 3d6b404d..6e2586a7 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -129,11 +129,10 @@ void arrange_windows(swayc_t *container, double width, double height) {
case C_WORKSPACE:
{
swayc_t *output = swayc_parent_by_type(container, C_OUTPUT);
- width = output->width, height = output->height;
+ container->width = output->width;
+ container->height = output->height;
container->x = x;
container->y = y;
- width = container->width;
- height = container->height;
sway_log(L_DEBUG, "Arranging workspace '%s' at %f, %f",
container->name, container->x, container->y);
}