aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <RyanDwyer@users.noreply.github.com>2018-11-08 22:41:14 +1000
committerLibravatar GitHub <noreply@github.com>2018-11-08 22:41:14 +1000
commitaad2f444f0bfc1cd7057bf55c9249dc36680af15 (patch)
tree843a3d538ae4176884b43f111b6330a4935496e3 /sway/tree/view.c
parentMerge pull request #3086 from RedSoxFan/fix-dup-inner-gaps (diff)
parentImplement per side and per direction outer gaps (diff)
downloadsway-aad2f444f0bfc1cd7057bf55c9249dc36680af15.tar.gz
sway-aad2f444f0bfc1cd7057bf55c9249dc36680af15.tar.zst
sway-aad2f444f0bfc1cd7057bf55c9249dc36680af15.zip
Merge pull request #3087 from RedSoxFan/side-gaps
Implement per side and per direction outer gaps
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 03bb01d3..21b32649 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -191,7 +191,8 @@ static bool gaps_to_edge(struct sway_view *view) {
191 } 191 }
192 con = con->parent; 192 con = con->parent;
193 } 193 }
194 return view->container->workspace->current_gaps > 0; 194 struct side_gaps gaps = view->container->workspace->current_gaps;
195 return gaps.top > 0 || gaps.right > 0 || gaps.bottom > 0 || gaps.left > 0;
195} 196}
196 197
197void view_autoconfigure(struct sway_view *view) { 198void view_autoconfigure(struct sway_view *view) {