aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 2e66abd4..43a12046 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -339,7 +339,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
339 container_current_parent_layout(con); 339 container_current_parent_layout(con);
340 340
341 if (state->border_right) { 341 if (state->border_right) {
342 if (siblings->length == 1 && layout == L_HORIZ) { 342 if (con->current.parent && siblings->length == 1 && layout == L_HORIZ) {
343 memcpy(&color, colors->indicator, sizeof(float) * 4); 343 memcpy(&color, colors->indicator, sizeof(float) * 4);
344 } else { 344 } else {
345 memcpy(&color, colors->child_border, sizeof(float) * 4); 345 memcpy(&color, colors->child_border, sizeof(float) * 4);
@@ -354,7 +354,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
354 } 354 }
355 355
356 if (state->border_bottom) { 356 if (state->border_bottom) {
357 if (siblings->length == 1 && layout == L_VERT) { 357 if (con->current.parent && siblings->length == 1 && layout == L_VERT) {
358 memcpy(&color, colors->indicator, sizeof(float) * 4); 358 memcpy(&color, colors->indicator, sizeof(float) * 4);
359 } else { 359 } else {
360 memcpy(&color, colors->child_border, sizeof(float) * 4); 360 memcpy(&color, colors->child_border, sizeof(float) * 4);