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 1ed3a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ a_removehelp(Widget w, XEvent* event, String* params, Cardinal* num_params)
/*
* callback routines
*/

static void setRepaintWhenIdle();

static void
c_repaint(Widget w, XtPointer data, XEvent* event, Boolean* continue_to_dispatch)
Expand All @@ -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 1ed3a0b

Please sign in to comment.