commit d61b59cad1a85e423ff1410e6ed19ef0006f8814
parent 9fe1d3da381296966e01d922ce6e54d0e55e7c00
Author: D.B <thejan.2009@gmail.com>
Date: Thu, 21 Jul 2016 22:55:01 +0200
outer gap 0 with smart_gaps on
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sway/container.c b/sway/container.c
@@ -755,6 +755,8 @@ int swayc_gap(swayc_t *container) {
// size to make the outermost gap the same size (excluding the
// actual "outer gap" size which is handled independently)
return base + config->gaps_inner / 2;
+ } else if (config->smart_gaps && container->children->length == 1) {
+ return 0;
} else {
return base;
}