mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Implement 'smart_gaps' feature from i3-gaps
This commit is contained in:
parent
00c1ce4fda
commit
2935e24cf5
6 changed files with 27 additions and 2 deletions
|
|
@ -406,7 +406,7 @@ void update_geometry(swayc_t *container) {
|
|||
if (op->focused == ws) {
|
||||
wlc_view_bring_to_front(container->handle);
|
||||
}
|
||||
} else if (!config->edge_gaps && gap > 0) {
|
||||
} else if ((!config->edge_gaps && gap > 0) || (config->smart_gaps && ws->children->length == 1)) {
|
||||
// Remove gap against the workspace edges. Because a pixel is not
|
||||
// divisable, depending on gap size and the number of siblings our view
|
||||
// might be at the workspace edge without being exactly so (thus test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue