mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
Merge pull request #3087 from RedSoxFan/side-gaps
Implement per side and per direction outer gaps
This commit is contained in:
commit
aad2f444f0
8 changed files with 278 additions and 106 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue