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 | e53b4813fe7a57f189c91e45355309567fb67b31 (diff) | |
parent | 9e8aa3953098adb6175c26aebd984a32a2beccb0 (diff) |
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) { } con = con->parent; } - return view->container->workspace->current_gaps > 0; + struct side_gaps gaps = view->container->workspace->current_gaps; + return gaps.top > 0 || gaps.right > 0 || gaps.bottom > 0 || gaps.left > 0; } void view_autoconfigure(struct sway_view *view) { |