From: Johannes Lange Date: Sun, 5 Feb 2017 09:04:35 +0000 (+0100) Subject: restart bar status command on config reload (#2668) X-Git-Tag: 4.14~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98f202dd1b2782d11a713513f5dcca2f52daab73;p=i3%2Fi3 restart bar status command on config reload (#2668) Closes #2651 --- diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index 4a090ad7..cc5074e5 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -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); }