aboutsummaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-20 06:51:56 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-20 06:51:56 -0400
commit616d630fb028e44359bc6f14d16f94564341c092 (patch)
tree5819c5982ee8604e1566c0960d939c2df687e665 /sway/layout.c
parent4db89b5fe46e8e7dc741b0ccb9fa3d0708c6fa59 (diff)
parent3c124d9e7d56559ff6c82ac313cb7ee065bc839f (diff)
Merge pull request #96 from KoffeinFlummi/gap-fix
Change gap behaviour to more closely match i3-gaps
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/layout.c b/sway/layout.c
index eb8391ce..e628c5ed 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -152,12 +152,12 @@ void arrange_windows(swayc_t *container, int width, int height) {
{
struct wlc_geometry geometry = {
.origin = {
- .x = container->x + container->gaps,
- .y = container->y + container->gaps
+ .x = container->x + container->gaps / 2,
+ .y = container->y + container->gaps / 2
},
.size = {
- .w = width - container->gaps * 2,
- .h = height - container->gaps * 2
+ .w = width - container->gaps,
+ .h = height - container->gaps
}
};
if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) {