summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-12-20 15:44:42 -0500
committerDrew DeVault <[email protected]>2015-12-20 15:44:42 -0500
commit5fbecba37ad9f19a9205715315248e7b82aa984d (patch)
treead1c5b9bc9c53c213887284095305aea1814f80c /sway/layout.c
parentadf5b8fed70b3b61e67f16c3bec4a9b25d8ec831 (diff)
parentf4b9c3856a03ce51d8761c32da8bd0986680b534 (diff)
Merge pull request #381 from sce/fix_gaps
Fix gaps
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 6d82921c..a9e7c7f1 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -398,10 +398,10 @@ void update_geometry(swayc_t *container) {
geometry.size.h = container->height - gap/2;
}
if (container->x + container->width + gap >= ws->x + ws->width) {
- geometry.size.w = ws->width - geometry.origin.x;
+ geometry.size.w = ws->x + ws->width - geometry.origin.x;
}
if (container->y + container->height + gap >= ws->y + ws->height) {
- geometry.size.h = ws->height - geometry.origin.y;
+ geometry.size.h = ws->y + ws->height - geometry.origin.y;
}
}
wlc_view_set_geometry(container->handle, 0, &geometry);