From: Dana Jansens Date: Wed, 5 Mar 2008 01:11:28 +0000 (-0500) Subject: remove a debug print, and make it wait 0 instead of 1 microsecond when it needs to... X-Git-Url: http://git.openbox.org/?p=dana%2Fdcompmgr.git;a=commitdiff_plain;h=e5d7f4daa81535fe84b0367f33d02e52bcda92f5 remove a debug print, and make it wait 0 instead of 1 microsecond when it needs to draw immediately --- diff --git a/dcompmgr.c b/dcompmgr.c index d39b101..c20025a 100644 --- a/dcompmgr.c +++ b/dcompmgr.c @@ -159,8 +159,6 @@ run(d_display_t *dpy) gettimeofday(&now, 0); - printf("* loop paint %d *\n", npaint); - if (!npaint) /* wait forever, there is nothing that needs drawing */ wait = NULL; @@ -172,7 +170,7 @@ run(d_display_t *dpy) else { /* don't wait cuz a redraw is due now already */ next.tv_sec = 0; - next.tv_usec = 1; + next.tv_usec = 0; wait = &next; }