summaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/colors.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar/colors.c')
-rw-r--r--sway/commands/bar/colors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/commands/bar/colors.c b/sway/commands/bar/colors.c
index 9e374d88..e9180604 100644
--- a/sway/commands/bar/colors.c
+++ b/sway/commands/bar/colors.c
@@ -57,14 +57,20 @@ struct cmd_results *bar_colors_cmd_binding_mode(int argc, char **argv) {
57 57
58 if ((error = add_color("binding_mode_border", config->current_bar->colors.binding_mode_border, argv[0]))) { 58 if ((error = add_color("binding_mode_border", config->current_bar->colors.binding_mode_border, argv[0]))) {
59 return error; 59 return error;
60 } else {
61 config->current_bar->colors.has_binding_mode_border = true;
60 } 62 }
61 63
62 if ((error = add_color("binding_mode_bg", config->current_bar->colors.binding_mode_bg, argv[1]))) { 64 if ((error = add_color("binding_mode_bg", config->current_bar->colors.binding_mode_bg, argv[1]))) {
63 return error; 65 return error;
66 } else {
67 config->current_bar->colors.has_binding_mode_bg = true;
64 } 68 }
65 69
66 if ((error = add_color("binding_mode_text", config->current_bar->colors.binding_mode_text, argv[2]))) { 70 if ((error = add_color("binding_mode_text", config->current_bar->colors.binding_mode_text, argv[2]))) {
67 return error; 71 return error;
72 } else {
73 config->current_bar->colors.has_binding_mode_text = true;
68 } 74 }
69 75
70 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 76 return cmd_results_new(CMD_SUCCESS, NULL, NULL);