aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar
diff options
context:
space:
mode:
authorD.B <thejan.2009@gmail.com>2016-11-02 17:09:34 +0100
committerD.B <thejan.2009@gmail.com>2016-11-02 18:58:33 +0100
commit39ee0ec552c05c7ab5031982a1104a0bae1910d3 (patch)
treedaaf306035c7e925e3ca0bc7867a6b6249a60b42 /sway/commands/bar
parentd3e55f88ecaacf7c7017357e83f30f91ffc02bb0 (diff)
use urgent_ws color in swaybar if binding_mode is undefined
Diffstat (limited to 'sway/commands/bar')
-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) {
if ((error = add_color("binding_mode_border", config->current_bar->colors.binding_mode_border, argv[0]))) {
return error;
+ } else {
+ config->current_bar->colors.has_binding_mode_border = true;
}
if ((error = add_color("binding_mode_bg", config->current_bar->colors.binding_mode_bg, argv[1]))) {
return error;
+ } else {
+ config->current_bar->colors.has_binding_mode_bg = true;
}
if ((error = add_color("binding_mode_text", config->current_bar->colors.binding_mode_text, argv[2]))) {
return error;
+ } else {
+ config->current_bar->colors.has_binding_mode_text = true;
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);