diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-07 23:30:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 23:30:05 +0200 |
commit | 89f4ebef064809c4e3d4cc08f8c7f08f4bc6d420 (patch) | |
tree | 29bd04516a0c032026d00c83ea2d9d4bb5952f74 /sway/commands/client.c | |
parent | 7252c7f7157394c7a2243eda7c7af608ed5016e7 (diff) | |
parent | 92e1fc00fdb78abaf050606797ffbb86a3f4328b (diff) |
Merge pull request #2786 from swaywm/no-op-client-commands
Shim client.background and client.placeholder
Diffstat (limited to 'sway/commands/client.c')
-rw-r--r-- | sway/commands/client.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c index 6e5f08a2..9f54fa94 100644 --- a/sway/commands/client.c +++ b/sway/commands/client.c @@ -64,27 +64,27 @@ static struct cmd_results *handle_command(int argc, char **argv, if (!parse_color_float(argv[0], class->border)) { return cmd_results_new(CMD_INVALID, cmd_name, - "Unable to parse border color"); + "Unable to parse border color '%s'", argv[0]); } if (!parse_color_float(argv[1], class->background)) { return cmd_results_new(CMD_INVALID, cmd_name, - "Unable to parse background color"); + "Unable to parse background color '%s'", argv[1]); } if (!parse_color_float(argv[2], class->text)) { return cmd_results_new(CMD_INVALID, cmd_name, - "Unable to parse text color"); + "Unable to parse text color '%s'", argv[2]); } if (!parse_color_float(argv[3], class->indicator)) { return cmd_results_new(CMD_INVALID, cmd_name, - "Unable to parse indicator color"); + "Unable to parse indicator color '%s'", argv[3]); } if (!parse_color_float(argv[4], class->child_border)) { return cmd_results_new(CMD_INVALID, cmd_name, - "Unable to parse child border color"); + "Unable to parse child border color '%s'", argv[4]); } if (config->active) { @@ -114,3 +114,8 @@ struct cmd_results *cmd_client_unfocused(int argc, char **argv) { struct cmd_results *cmd_client_urgent(int argc, char **argv) { return handle_command(argc, argv, &config->border_colors.urgent, "client.urgent"); } + +struct cmd_results *cmd_client_noop(int argc, char **argv) { + wlr_log(WLR_INFO, "Warning: %s is ignored by sway", argv[-1]); + return cmd_results_new(CMD_SUCCESS, NULL, NULL); +} |