From 816ceddcbdd6c98648784e85559b495b63613b7b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 29 Apr 2017 10:07:18 -0400 Subject: [PATCH] Set child border to background if not specified --- sway/commands/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/commands/client.c b/sway/commands/client.c index 30f9137e5..f3d879cd4 100644 --- a/sway/commands/client.c +++ b/sway/commands/client.c @@ -25,6 +25,10 @@ static struct cmd_results *parse_border_color(struct border_colors *border_color *colors[i] = strtoul(buffer + 1, NULL, 16); } + if (argc < 5) { + border_colors->child_border = border_colors->background; + } + return cmd_results_new(CMD_SUCCESS, NULL, NULL); }