aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-29 10:07:18 -0400
committerDrew DeVault <sir@cmpwn.com>2017-05-01 10:25:16 -0400
commit27c725ecede9beea7868b5196715d131fca95285 (patch)
treefe144986503207bdff48e08ee5d65ecd014da1b3
parent86f81e03644bd404176ea4a2dce7534d4c58130e (diff)
downloadsway-27c725ecede9beea7868b5196715d131fca95285.zip
sway-27c725ecede9beea7868b5196715d131fca95285.tar.gz
sway-27c725ecede9beea7868b5196715d131fca95285.tar.bz2
Set child border to background if not specified
-rw-r--r--sway/commands/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c
index 30f9137..f3d879c 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);
}