summaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sway/layout.c b/sway/layout.c
index e2ea46a7..737477f7 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -133,12 +133,12 @@ void arrange_windows(swayc_t *container, int width, int height) {
133 { 133 {
134 struct wlc_geometry geometry = { 134 struct wlc_geometry geometry = {
135 .origin = { 135 .origin = {
136 .x = container->x, 136 .x = container->x + container->gaps / 2,
137 .y = container->y 137 .y = container->y + container->gaps / 2
138 }, 138 },
139 .size = { 139 .size = {
140 .w = width, 140 .w = width - container->gaps,
141 .h = height 141 .h = height - container->gaps
142 } 142 }
143 }; 143 };
144 if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) { 144 if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) {
@@ -146,10 +146,10 @@ void arrange_windows(swayc_t *container, int width, int height) {
146 while (parent->type != C_OUTPUT) { 146 while (parent->type != C_OUTPUT) {
147 parent = parent->parent; 147 parent = parent->parent;
148 } 148 }
149 geometry.origin.x = 0; 149 geometry.origin.x = container->gaps / 2;
150 geometry.origin.y = 0; 150 geometry.origin.y = container->gaps / 2;
151 geometry.size.w = parent->width; 151 geometry.size.w = parent->width - container->gaps;
152 geometry.size.h = parent->height; 152 geometry.size.h = parent->height - container->gaps;
153 wlc_view_set_geometry(container->handle, &geometry); 153 wlc_view_set_geometry(container->handle, &geometry);
154 wlc_view_bring_to_front(container->handle); 154 wlc_view_bring_to_front(container->handle);
155 } else { 155 } else {