Merge pull request #3087 from RedSoxFan/side-gaps

Implement per side and per direction outer gaps
This commit is contained in:
Ryan Dwyer 2018-11-08 22:41:14 +10:00 committed by GitHub
commit aad2f444f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 278 additions and 106 deletions

View file

@ -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) {