Learn "gaps edge_gaps <on|off|toggle>".

When yes, the old behaviour of adding half the inner gap around each
view is used.

When no, don't add any gap when an edge of the view aligns with the
workspace. The result is inner gap only between views, not against the
workspace edge.

The algorithm is not perfect because it means the extra space is
distributed amongst edge-aligned views only, but it's simple, looks good
and it works.
This commit is contained in:
S. Christoffer Eliesen 2015-11-04 02:55:38 +01:00
parent 713c7d6e1e
commit abc5fbfaec
5 changed files with 42 additions and 2 deletions

View file

@ -105,6 +105,7 @@ static void config_defaults(struct sway_config *config) {
config->seamless_mouse = true;
config->reading = false;
config->edge_gaps = false;
config->gaps_inner = 0;
config->gaps_outer = 0;
}