Skip to content

Commit

Permalink
Use work procedure on Expose events.
Browse files Browse the repository at this point in the history
Instead of doing a repaint on every Expose event, just trigger the work
procedure to do a repaint when the queue is idle.
  • Loading branch information
donald committed Mar 22, 2019
1 parent 4f22d4d commit 6f36cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ c_repaint(Widget w, XtPointer data, XEvent* event, Boolean* continue_to_dispatch
/*
* printf("Expose\n");
*/
xrepaint_noclear();
setRepaintWhenIdle();
}

/*
Expand Down

0 comments on commit 6f36cbc

Please sign in to comment.