aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-06-09 08:43:18 -0700
committerGitHub <noreply@github.com>2018-06-09 08:43:18 -0700
commitd9fc381e0292519cccf2df6ea77a3356a2e621c7 (patch)
tree24e4ea6634a734ed303c7aaf611df682adbf746c /include/sway
parent21d98d5bfb19491f8fd486a2eddc8efe9fb3de6c (diff)
parent6a910b9ba5443aa31f7cc2468c943c2f9da4854b (diff)
Merge pull request #2047 from natesymer/master
Implement Gaps
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/tree/arrange.h6
-rw-r--r--include/sway/tree/container.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sway/tree/arrange.h b/include/sway/tree/arrange.h
index ce95cfe9..a14bc5dc 100644
--- a/include/sway/tree/arrange.h
+++ b/include/sway/tree/arrange.h
@@ -3,6 +3,12 @@
struct sway_container;
+// Remove gaps around container
+void remove_gaps(struct sway_container *c);
+
+// Add gaps around container
+void add_gaps(struct sway_container *c);
+
// Determine the root container's geometry, then iterate to everything below
void arrange_root(void);
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 7ed6aab1..b3406bbe 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -86,6 +86,13 @@ struct sway_container {
double saved_x, saved_y;
double saved_width, saved_height;
+ // The gaps currently applied to the container.
+ double current_gaps;
+
+ bool has_gaps;
+ double gaps_inner;
+ double gaps_outer;
+
list_t *children;
struct sway_container *parent;