diff options
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index e9998bc8..d9c4598f 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -406,7 +406,7 @@ void update_geometry(swayc_t *container) { | |||
406 | if (op->focused == ws) { | 406 | if (op->focused == ws) { |
407 | wlc_view_bring_to_front(container->handle); | 407 | wlc_view_bring_to_front(container->handle); |
408 | } | 408 | } |
409 | } else if (!config->edge_gaps && gap > 0) { | 409 | } else if ((!config->edge_gaps && gap > 0) || (config->smart_gaps && ws->children->length == 1)) { |
410 | // Remove gap against the workspace edges. Because a pixel is not | 410 | // Remove gap against the workspace edges. Because a pixel is not |
411 | // divisable, depending on gap size and the number of siblings our view | 411 | // divisable, depending on gap size and the number of siblings our view |
412 | // might be at the workspace edge without being exactly so (thus test | 412 | // might be at the workspace edge without being exactly so (thus test |