From 39cff5c31f4cdc7bc8496d1f1930e0b1aba7c929 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 25 Aug 2011 18:46:08 +0200 Subject: [PATCH] i3bar: Bugfix: When receiving EOF, immediately redraw and discard input --- i3bar/src/child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;