aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-30 13:47:35 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-30 13:47:35 +0200
commitf1dbdce0b2cfb6a71f972dd58180337c8ad27096 (patch)
tree061fc029a12ea5edd42444a1c03176083b210bf3 /include
parentMerge pull request #2728 from RedSoxFan/move-sticky-on-evac (diff)
parentUpdate gaps documentation (diff)
downloadsway-f1dbdce0b2cfb6a71f972dd58180337c8ad27096.tar.gz
sway-f1dbdce0b2cfb6a71f972dd58180337c8ad27096.tar.zst
sway-f1dbdce0b2cfb6a71f972dd58180337c8ad27096.zip
Merge pull request #2726 from RyanDwyer/overhaul-gaps
Make gaps implementation consistent with i3-gaps
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h2
-rw-r--r--include/sway/tree/container.h3
-rw-r--r--include/sway/tree/workspace.h7
3 files changed, 5 insertions, 7 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 2395bc51..eab48aed 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -174,6 +174,8 @@ struct output_config {
174struct workspace_config { 174struct workspace_config {
175 char *workspace; 175 char *workspace;
176 char *output; 176 char *output;
177 int gaps_inner;
178 int gaps_outer;
177}; 179};
178 180
179struct bar_config { 181struct bar_config {
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 5e281a2f..b865a0f2 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -94,9 +94,6 @@ struct sway_container {
94 94
95 // The gaps currently applied to the container. 95 // The gaps currently applied to the container.
96 double current_gaps; 96 double current_gaps;
97 bool has_gaps;
98 double gaps_inner;
99 double gaps_outer;
100 97
101 struct sway_workspace *workspace; // NULL when hidden in the scratchpad 98 struct sway_workspace *workspace; // NULL when hidden in the scratchpad
102 struct sway_container *parent; // NULL if container in root of workspace 99 struct sway_container *parent; // NULL if container in root of workspace
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index c8220b39..efdae5a1 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -32,10 +32,9 @@ struct sway_workspace {
32 enum sway_container_layout layout; 32 enum sway_container_layout layout;
33 enum sway_container_layout prev_split_layout; 33 enum sway_container_layout prev_split_layout;
34 34
35 double current_gaps; 35 int current_gaps;
36 bool has_gaps; 36 int gaps_inner;
37 double gaps_inner; 37 int gaps_outer;
38 double gaps_outer;
39 38
40 struct sway_output *output; // NULL if no outputs are connected 39 struct sway_output *output; // NULL if no outputs are connected
41 list_t *floating; // struct sway_container 40 list_t *floating; // struct sway_container