]> git.sur5r.net Git - i3/i3/commitdiff
restart bar status command on config reload (#2668)
authorJohannes Lange <jolange@users.noreply.github.com>
Sun, 5 Feb 2017 09:04:35 +0000 (10:04 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 5 Feb 2017 09:04:35 +0000 (01:04 -0800)
Closes #2651

i3bar/src/ipc.c

index 4a090ad794f16fac5339ff03a4401936496753b1..cc5074e5b27306e01bdff16d2f6e2f116753b3de 100644 (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);
 }