http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver] / hacks / munch.c
index d1f2ea6b68a33da6b22204afb3a5d81f8a2fdd30..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
@@ -44,8 +44,8 @@
 char *progclass = "Munch";
 
 char *defaults [] = {
-    "Munch.background: black",         /* to placate SGI */
-    "Munch.foreground: white",
+    ".background:      black",
+    ".foreground:      white",
     "*delay:           5000",
     "*hold:            100000",
     "*clear:           50",
@@ -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) {