X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmunch.c;h=b3cd73517d2c477dc638eb727a72a7bdd1586476;hb=278c59e14c53fd412b734e699bd4f314f766f804;hp=352c5dc915410ac16cde143cd86a52655a1a51f9;hpb=0bd2eabab3e404c6769fe8f59b639275e960c415;p=xscreensaver diff --git a/hacks/munch.c b/hacks/munch.c index 352c5dc9..b3cd7351 100644 --- a/hacks/munch.c +++ b/hacks/munch.c @@ -9,7 +9,7 @@ * * Some code stolen from / This is meant to work with * xscreensaver, Copyright (c) 1992, 1995, 1996 - * Jamie Zawinski + * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -133,6 +133,7 @@ static void munchOnce (Display* dpy, Window w, same time (one for each value of x, surprisingly enough) */ XSync(dpy, False); + screenhack_handle_events (dpy); if (delay) usleep(delay); } } @@ -246,6 +247,7 @@ screenhack (dpy, w) Display *dpy; Window w; (randflags & GRAV) ); + screenhack_handle_events (dpy); if (hold) usleep(hold); if (clear && ++n >= clear) {