aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-10-08 09:45:06 -0400
committerDrew DeVault <sir@cmpwn.com>2016-10-12 21:43:16 -0400
commit68fb10a84b09df81d1e2630b19af2ac151d9c203 (patch)
tree334755760fdaa9e9dfee8f0663d4ad7cfbd7a3e2
parent67eaa845dfe6127ecd43f58f965d6d826b300c7f (diff)
downloadsway-68fb10a84b09df81d1e2630b19af2ac151d9c203.zip
sway-68fb10a84b09df81d1e2630b19af2ac151d9c203.tar.gz
sway-68fb10a84b09df81d1e2630b19af2ac151d9c203.tar.bz2
Merge pull request #941 from thejan2009/floating-border
Fix border color for floating containers
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index ea29617..db1a383 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;