diff options
author | 2016-10-08 09:07:11 +0200 | |
---|---|---|
committer | 2016-10-08 09:15:34 +0200 | |
commit | 77f99480ae2777c0d4458fcc01610cf7488b27c5 (patch) | |
tree | 30859c90dc0212f4dabca7baea3ae409da28af28 /sway/border.c | |
parent | Merge pull request #938 from alkino/fix_sibling (diff) | |
download | sway-77f99480ae2777c0d4458fcc01610cf7488b27c5.tar.gz sway-77f99480ae2777c0d4458fcc01610cf7488b27c5.tar.zst sway-77f99480ae2777c0d4458fcc01610cf7488b27c5.zip |
draw indicator border only for non-floating
Diffstat (limited to 'sway/border.c')
-rw-r--r-- | sway/border.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c index ea29617f..db1a3836 100644 --- 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 | |||
124 | // right border | 124 | // right border |
125 | int right_border = b->size.w - v->size.w - left_border; | 125 | int right_border = b->size.w - v->size.w - left_border; |
126 | if (right_border > 0) { | 126 | if (right_border > 0) { |
127 | if (is_only_child && layout == L_HORIZ) { | 127 | if (is_only_child && layout == L_HORIZ && !view->is_floating) { |
128 | color = colors->indicator; | 128 | color = colors->indicator; |
129 | } else { | 129 | } else { |
130 | color = colors->child_border; | 130 | color = colors->child_border; |
@@ -150,7 +150,7 @@ static void render_borders(swayc_t *view, cairo_t *cr, struct border_colors *col | |||
150 | // bottom border | 150 | // bottom border |
151 | int bottom_border = b->size.h - (top_border + v->size.h); | 151 | int bottom_border = b->size.h - (top_border + v->size.h); |
152 | if (bottom_border > 0) { | 152 | if (bottom_border > 0) { |
153 | if (is_only_child && layout == L_VERT) { | 153 | if (is_only_child && layout == L_VERT && !view->is_floating) { |
154 | color = colors->indicator; | 154 | color = colors->indicator; |
155 | } else { | 155 | } else { |
156 | color = colors->child_border; | 156 | color = colors->child_border; |