]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: Bugfix: When receiving EOF, immediately redraw and discard input
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Aug 2011 16:46:08 +0000 (18:46 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Aug 2011 16:46:08 +0000 (18:46 +0200)
i3bar/src/child.c

index 1662dbd23d7b71804572eb6adeb41fec2e4106bb..faab9142ee04d6985f120dc2bd469b8c6f9a2a9d 100644 (file)
@@ -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;