diff options
author | D.B <thejan.2009@gmail.com> | 2016-07-21 22:55:01 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-07-21 22:58:13 +0200 |
commit | d61b59cad1a85e423ff1410e6ed19ef0006f8814 (patch) | |
tree | 0ca1dfc40e6f7c3fa461106637b0b236fd36a77f | |
parent | Merge pull request #778 from thejan2009/hide_edge_borders-fix (diff) | |
download | sway-d61b59cad1a85e423ff1410e6ed19ef0006f8814.tar.gz sway-d61b59cad1a85e423ff1410e6ed19ef0006f8814.tar.zst sway-d61b59cad1a85e423ff1410e6ed19ef0006f8814.zip |
outer gap 0 with smart_gaps on
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index bffbe620..67aa6851 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -755,6 +755,8 @@ int swayc_gap(swayc_t *container) { | |||
755 | // size to make the outermost gap the same size (excluding the | 755 | // size to make the outermost gap the same size (excluding the |
756 | // actual "outer gap" size which is handled independently) | 756 | // actual "outer gap" size which is handled independently) |
757 | return base + config->gaps_inner / 2; | 757 | return base + config->gaps_inner / 2; |
758 | } else if (config->smart_gaps && container->children->length == 1) { | ||
759 | return 0; | ||
758 | } else { | 760 | } else { |
759 | return base; | 761 | return base; |
760 | } | 762 | } |