summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-23 10:55:18 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-23 10:55:18 -0400
commit643bd8f15816d0443f3e8d2a32ef6b20547cd389 (patch)
tree0ef00e73b5c082beb587d00cdbf14475d09a0a80
parentMerge pull request #781 from thejan2009/bottom-right-edges (diff)
parentouter gap 0 with smart_gaps on (diff)
downloadsway-643bd8f15816d0443f3e8d2a32ef6b20547cd389.tar.gz
sway-643bd8f15816d0443f3e8d2a32ef6b20547cd389.tar.zst
sway-643bd8f15816d0443f3e8d2a32ef6b20547cd389.zip
Merge pull request #779 from thejan2009/smart-gaps-outer
Hide outer gaps too when smart_gaps is on
-rw-r--r--sway/container.c2
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 }