diff options
Diffstat (limited to 'sway/border.c')
-rw-r--r-- | sway/border.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c index 0d1be970..7600351a 100644 --- a/sway/border.c +++ b/sway/border.c | |||
@@ -402,7 +402,13 @@ void update_view_border(swayc_t *view) { | |||
402 | void render_view_borders(wlc_handle view) { | 402 | void render_view_borders(wlc_handle view) { |
403 | swayc_t *c = swayc_by_handle(view); | 403 | swayc_t *c = swayc_by_handle(view); |
404 | 404 | ||
405 | if (!c || c->border_type == B_NONE) { | 405 | |
406 | // emulate i3 behavior for drawing borders for tabbed and stacked layouts: | ||
407 | // if we are not the only child in the container, always draw borders, | ||
408 | // regardless of the border setting on the individual view | ||
409 | if (!c || (c->border_type == B_NONE | ||
410 | && !((c->parent->layout == L_TABBED || c->parent->layout == L_STACKED) | ||
411 | && c->parent->children->length > 1))) { | ||
406 | return; | 412 | return; |
407 | } | 413 | } |
408 | 414 | ||