summaryrefslogtreecommitdiffstats
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) {
129 case C_WORKSPACE: 129 case C_WORKSPACE:
130 { 130 {
131 swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); 131 swayc_t *output = swayc_parent_by_type(container, C_OUTPUT);
132 width = output->width, height = output->height; 132 container->width = output->width;
133 container->height = output->height;
133 container->x = x; 134 container->x = x;
134 container->y = y; 135 container->y = y;
135 width = container->width;
136 height = container->height;
137 sway_log(L_DEBUG, "Arranging workspace '%s' at %f, %f", 136 sway_log(L_DEBUG, "Arranging workspace '%s' at %f, %f",
138 container->name, container->x, container->y); 137 container->name, container->x, container->y);
139 } 138 }