restart bar status command on config reload (#2668)

Closes #2651
This commit is contained in:
Johannes Lange 2017-02-05 10:04:35 +01:00 committed by Michael Stapelberg
parent fa488d721d
commit 98f202dd1b
1 changed files with 5 additions and 0 deletions

View File

@ -178,6 +178,11 @@ void got_bar_config_update(char *event) {
init_xcb_late(config.fontname);
init_colors(&(config.colors));
/* restart status command process */
kill_child();
start_child(config.command);
FREE(config.command);
draw_bars(false);
}