aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-04 02:55:38 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-04 13:21:10 +0100
commitabc5fbfaec5159de7e3f6043e61c00b81787a9f2 (patch)
tree325b45395cd3ccda48cb7400922fda5b4731b14b /include
parentMerge pull request #215 from sce/gaps (diff)
downloadsway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.tar.gz
sway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.tar.zst
sway-abc5fbfaec5159de7e3f6043e61c00b81787a9f2.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 56fba691..636d3ec0 100644
--- a/include/config.h
+++ b/include/config.h
@@ -57,6 +57,7 @@ struct sway_config {
57 bool auto_back_and_forth; 57 bool auto_back_and_forth;
58 bool seamless_mouse; 58 bool seamless_mouse;
59 59
60 bool edge_gaps;
60 int gaps_inner; 61 int gaps_inner;
61 int gaps_outer; 62 int gaps_outer;
62}; 63};