aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
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);
}