diff options
Diffstat (limited to 'sway/commands/floating_modifier.c')
-rw-r--r-- | sway/commands/floating_modifier.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/commands/floating_modifier.c b/sway/commands/floating_modifier.c index f5d2b3fe..3674971a 100644 --- a/sway/commands/floating_modifier.c +++ b/sway/commands/floating_modifier.c @@ -11,8 +11,7 @@ struct cmd_results *cmd_floating_modifier(int argc, char **argv) { uint32_t mod = get_modifier_mask_by_name(argv[0]); if (!mod) { - return cmd_results_new(CMD_INVALID, "floating_modifier", - "Invalid modifier"); + return cmd_results_new(CMD_INVALID, "Invalid modifier"); } if (argc == 1 || strcasecmp(argv[1], "normal") == 0) { @@ -20,11 +19,11 @@ struct cmd_results *cmd_floating_modifier(int argc, char **argv) { } else if (strcasecmp(argv[1], "inverse") == 0) { config->floating_mod_inverse = true; } else { - return cmd_results_new(CMD_INVALID, "floating_modifier", + return cmd_results_new(CMD_INVALID, "Usage: floating_modifier <mod> [inverse|normal]"); } config->floating_mod = mod; - return cmd_results_new(CMD_SUCCESS, NULL, NULL); + return cmd_results_new(CMD_SUCCESS, NULL); } |