http://apple.doit.wisc.edu/mirrors/amug/linux/linuxppc/sources/tarballs/xscreensaver...
[xscreensaver] / hacks / munch.c
index 352c5dc915410ac16cde143cd86a52655a1a51f9..b3cd73517d2c477dc638eb727a72a7bdd1586476 100644 (file)
@@ -9,7 +9,7 @@
  * 
  * Some code stolen from / This is meant to work with
  * xscreensaver, Copyright (c) 1992, 1995, 1996
- * Jamie Zawinski <jwz@netscape.com>
+ * Jamie Zawinski <jwz@jwz.org>
  *
  * 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) {