From 98576b9ddab61998f92ada497e0d8affa0cb1205 Mon Sep 17 00:00:00 2001
From: Ian Fan <ianfan0@gmail.com>
Date: Mon, 24 Sep 2018 18:55:52 +0100
Subject: swaybar: fix setting binding mode indicator

---
 sway/commands/bar/binding_mode_indicator.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'sway/commands')

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);
 }
-- 
cgit v1.2.3