diff options
author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-11-08 22:41:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 22:41:14 +1000 |
commit | aad2f444f0bfc1cd7057bf55c9249dc36680af15 (patch) | |
tree | 843a3d538ae4176884b43f111b6330a4935496e3 /sway/tree/view.c | |
parent | Merge pull request #3086 from RedSoxFan/fix-dup-inner-gaps (diff) | |
parent | Implement per side and per direction outer gaps (diff) | |
download | sway-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.c | 3 |
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 | ||
197 | void view_autoconfigure(struct sway_view *view) { | 198 | void view_autoconfigure(struct sway_view *view) { |