From: Michael D. Lowis Date: Tue, 8 May 2018 13:18:41 +0000 (-0400) Subject: tweaked logic to update window after process I/O. This could be made more efficient... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=4903b4356643ce2a1e831aa771e9cf6903fd1b12;p=projs%2Ftide.git tweaked logic to update window after process I/O. This could be made more efficient by tracking if the window is dirty. --- diff --git a/lib/x11.c b/lib/x11.c index be9057e..e5cf3fa 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -554,7 +554,9 @@ void win_loop(void) { XMapWindow(X.display, X.self); XFlush(X.display); job_spawn(ConnectionNumber(X.display), xupdate, 0, 0); - while (1) job_poll(Timeout); + while (1) + if (job_poll(Timeout)) + xupdate(NULL); } void win_quit(void) {