summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-20 05:08:04 -0700
committertaiyu <[email protected]>2015-08-20 05:08:04 -0700
commit927ef0a5ecbd5fae71e862cdd9b6c83fa1c481d8 (patch)
treefa696b1ab1925041fa744d1c56c8e2c30201f076 /sway/layout.c
parentf5fde7c45c04b02406eabc34cbb4248189c6a26e (diff)
parent95f5660897b6640f13623178651f45549a917efb (diff)
Merge branch 'master' of https://github.com/SirCmpwn/sway
merging
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 4a9aa907..78b3dd27 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) {