From 6f36cbc632b02c274740c3e73f85698b9cf515d4 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 22 Mar 2019 15:41:13 +0100 Subject: [PATCH] Use work procedure on Expose events. Instead of doing a repaint on every Expose event, just trigger the work procedure to do a repaint when the queue is idle. --- xwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwin.c b/xwin.c index 6e46f31..641779f 100644 --- a/xwin.c +++ b/xwin.c @@ -342,7 +342,7 @@ c_repaint(Widget w, XtPointer data, XEvent* event, Boolean* continue_to_dispatch /* * printf("Expose\n"); */ - xrepaint_noclear(); + setRepaintWhenIdle(); } /*