aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-11-25 15:49:10 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-11-25 15:49:10 -0500
commita57d46292694e388d74add7b0869bcafdb42b2bd (patch)
tree74b91247e749c1b67f89bd2271f31762b659545b /sway/tree
parentArrange windows on desktop (diff)
downloadsway-a57d46292694e388d74add7b0869bcafdb42b2bd.tar.gz
sway-a57d46292694e388d74add7b0869bcafdb42b2bd.tar.zst
sway-a57d46292694e388d74add7b0869bcafdb42b2bd.zip
Fix rendering issues, wire up some xdg listeners
Diffstat (limited to 'sway/tree')
-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 }