diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 04454ab6..1b193944 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -1163,7 +1163,9 @@ void container_add_gaps(struct sway_container *c) { | |||
1163 | return; | 1163 | return; |
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | c->current_gaps = c->has_gaps ? c->gaps_inner : config->gaps_inner; | 1166 | struct sway_container *ws = container_parent(c, C_WORKSPACE); |
1167 | |||
1168 | c->current_gaps = ws->has_gaps ? ws->gaps_inner : config->gaps_inner; | ||
1167 | c->x += c->current_gaps; | 1169 | c->x += c->current_gaps; |
1168 | c->y += c->current_gaps; | 1170 | c->y += c->current_gaps; |
1169 | c->width -= 2 * c->current_gaps; | 1171 | c->width -= 2 * c->current_gaps; |