aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-28 16:44:35 +0200
committerGitHub <noreply@github.com>2018-09-28 16:44:35 +0200
commitca7084cb52bd5a27a847e43320490b7a5ee5ef73 (patch)
tree9e9da5790b1fd66f13ab89b70570750081b36c45 /sway/commands/bar
parent02df1e2b1b4306481f8e1023d99fb568095a89b3 (diff)
parent25e1f327386c5c8d0b2839d03e2d833e71dc9e61 (diff)
downloadsway-ca7084cb52bd5a27a847e43320490b7a5ee5ef73.tar.xz
Merge pull request #2723 from ianyfan/swaybar
swaybar: small fixes and clean-ups
Diffstat (limited to 'sway/commands/bar')
-rw-r--r--sway/commands/bar/binding_mode_indicator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/commands/bar/binding_mode_indicator.c b/sway/commands/bar/binding_mode_indicator.c
index 0c48bee9..f18b8d7c 100644
--- a/sway/commands/bar/binding_mode_indicator.c
+++ b/sway/commands/bar/binding_mode_indicator.c
@@ -21,7 +21,9 @@ struct cmd_results *bar_cmd_binding_mode_indicator(int argc, char **argv) {
config->current_bar->binding_mode_indicator = false;
wlr_log(WLR_DEBUG, "Disabling binding mode indicator on bar: %s",
config->current_bar->id);
+ } else {
+ return cmd_results_new(CMD_INVALID, "binding_mode_indicator",
+ "Invalid value %s", argv[0]);
}
- return cmd_results_new(CMD_INVALID, "binding_mode_indicator",
- "Invalid value %s", argv[0]);
+ return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}