diff options
author | Mikkel Oscar Lyderik <[email protected]> | 2016-04-22 22:44:02 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-04-25 00:00:49 +0200 |
commit | 5492277f0c007eea632d242a6d7cbd9cee7cdcf6 (patch) | |
tree | 30b4e754dfc2b4a76b357a3a2f8b4833732a2bea /sway/container.c | |
parent | 3e1f78ab26e8bc6b6cefd53ee137e97533c2695e (diff) |
Disable inner gaps when in tabbed/stacked mode
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index f4258c84..9db81012 100644 --- a/sway/container.c +++ b/sway/container.c @@ -218,6 +218,7 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) { cont->y = child->y; cont->visible = child->visible; cont->cached_geometry = child->cached_geometry; + cont->gaps = child->gaps; /* Container inherits all of workspaces children, layout and whatnot */ if (child->type == C_WORKSPACE) { @@ -680,7 +681,7 @@ bool swayc_is_child_of(swayc_t *child, swayc_t *parent) { } int swayc_gap(swayc_t *container) { - if (container->type == C_VIEW) { + if (container->type == C_VIEW || container->type == C_CONTAINER) { return container->gaps >= 0 ? container->gaps : config->gaps_inner; } else if (container->type == C_WORKSPACE) { int base = container->gaps >= 0 ? container->gaps : config->gaps_outer; |