aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorD.B <thejan.2009@gmail.com>2016-10-08 09:07:11 +0200
committerD.B <thejan.2009@gmail.com>2016-10-08 09:15:34 +0200
commit77f99480ae2777c0d4458fcc01610cf7488b27c5 (patch)
tree30859c90dc0212f4dabca7baea3ae409da28af28 /sway
parentcd64df9b3a9bbe7ae47d0f431d6968289eb1b0a4 (diff)
draw indicator border only for non-floating
Diffstat (limited to 'sway')
-rw-r--r--sway/border.c4
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
// 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;