From: Michael Stapelberg Date: Thu, 25 Aug 2011 16:46:08 +0000 (+0200) Subject: i3bar: Bugfix: When receiving EOF, immediately redraw and discard input X-Git-Tag: 4.0.2~22^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39cff5c31f4cdc7bc8496d1f1930e0b1aba7c929;p=i3%2Fi3 i3bar: Bugfix: When receiving EOF, immediately redraw and discard input --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 1662dbd2..faab9142 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -82,7 +82,8 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) { /* end of file, kill the watcher */ ELOG("stdin: received EOF\n"); cleanup(); - break; + draw_bars(); + return; } rec += n;