commit 0fc03f9c13a349f5cbe32813e2f7b4cdf37e98ba
parent cc20f5cc35564f7b7162a17304f5e7563543487a
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 8 Oct 2016 09:45:06 -0400
Merge pull request #941 from thejan2009/floating-border
Fix border color for floating containers
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sway/border.c b/sway/border.c
@@ -124,7 +124,7 @@ static void render_borders(swayc_t *view, cairo_t *cr, struct border_colors *col
// right border
int right_border = b->size.w - v->size.w - left_border;
if (right_border > 0) {
- if (is_only_child && layout == L_HORIZ) {
+ if (is_only_child && layout == L_HORIZ && !view->is_floating) {
color = colors->indicator;
} else {
color = colors->child_border;
@@ -150,7 +150,7 @@ static void render_borders(swayc_t *view, cairo_t *cr, struct border_colors *col
// bottom border
int bottom_border = b->size.h - (top_border + v->size.h);
if (bottom_border > 0) {
- if (is_only_child && layout == L_VERT) {
+ if (is_only_child && layout == L_VERT && !view->is_floating) {
color = colors->indicator;
} else {
color = colors->child_border;