From 4903b4356643ce2a1e831aa771e9cf6903fd1b12 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 8 May 2018 09:18:41 -0400 Subject: [PATCH] tweaked logic to update window after process I/O. This could be made more efficient by tracking if the window is dirty. --- lib/x11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.49.0