summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-23 10:55:18 -0400
committerFurkan Sahin <furkan-dev@proton.me>2016-07-23 10:55:18 -0400
commitef6bbcb15850ed48e738a167655a11baffc742d1 (patch)
tree0ef00e73b5c082beb587d00cdbf14475d09a0a80
parentf1c90a67657c4ba054d59f95a879aba181d76667 (diff)
parent2d37d6f88a684fd6bd8e3fce5e2ff4a1eb3fa2ce (diff)
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) {
// 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;
}