X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcritical.c;h=17abf8f4c398b9b6e95e7b3003bec4a0a77ed120;hp=ae3df0b13bd8a986a0027afa004ab4369ec2807e;hb=551b3de3f619c04c2dd1971ee9b3f02e270c28c9;hpb=a719ec12b8b2563112366a8ac3196816fd64d2c7 diff --git a/hacks/critical.c b/hacks/critical.c index ae3df0b1..17abf8f4 100644 --- a/hacks/critical.c +++ b/hacks/critical.c @@ -308,12 +308,11 @@ screenhack (Display *dpy, Window window) x2 * cell_size + cell_size/2, y2 * cell_size + cell_size/2); - /* Flush changes to display, and discard any pending input -- - we'll never look at it anyhow, and it saves it filling up - memory. */ - XSync (dpy, True); + XSync (dpy, False); + screenhack_handle_events (dpy); - usleep (delay_usecs); + if (delay_usecs) + usleep (delay_usecs); } i_restart = (i_restart + 1) % n_restart;