]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: render bars after the first chunk of JSON (Thanks javier)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Jul 2014 22:32:42 +0000 (00:32 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Jul 2014 22:32:42 +0000 (00:32 +0200)
fixes #1315

i3bar/src/child.c

index 5867ce4a1a42f9e442388e89dce0f4872c8f3a12..8645a664e19cd98d09c51096dc1772b8a0b6ee85 100644 (file)
@@ -371,7 +371,7 @@ void stdin_io_first_line_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
         if (config.hide_on_modifier) {
             stop_child();
         }
-        read_json_input(buffer + consumed, rec - consumed);
+        draw_bars(read_json_input(buffer + consumed, rec - consumed));
     } else {
         /* In case of plaintext, we just add a single block and change its
          * full_text pointer later. */