mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 05:54:11 +01:00
outer gap 0 with smart_gaps on
This commit is contained in:
parent
9fe1d3da38
commit
d61b59cad1
@ -755,6 +755,8 @@ int swayc_gap(swayc_t *container) {
|
|||||||
// size to make the outermost gap the same size (excluding the
|
// size to make the outermost gap the same size (excluding the
|
||||||
// actual "outer gap" size which is handled independently)
|
// actual "outer gap" size which is handled independently)
|
||||||
return base + config->gaps_inner / 2;
|
return base + config->gaps_inner / 2;
|
||||||
|
} else if (config->smart_gaps && container->children->length == 1) {
|
||||||
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return base;
|
return base;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user