http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver] / hacks / attraction.c
index 42930046acc350997deab5cdca33de6ef5e0876e..1a84833b80fb89a86becee326877b31260961108 100644 (file)
@@ -1,5 +1,5 @@
-/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997
- *  Jamie Zawinski <jwz@netscape.com>
+/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998
+ *  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
@@ -605,15 +605,15 @@ run_balls (Display *dpy, Window window)
       abort ();
     }
 
-  XSync (dpy, True);
+  XSync (dpy, False);
 }
 
 \f
 char *progclass = "Attraction";
 
 char *defaults [] = {
-  "Attraction.background:      black",         /* to placate SGI */
-  "Attraction.foreground:      white",
+  ".background:        black",
+  ".foreground:        white",
   "*mode:      balls",
   "*points:    0",
   "*size:      0",
@@ -661,6 +661,7 @@ screenhack (Display *dpy, Window window)
   while (1)
     {
       run_balls (dpy, window);
+      screenhack_handle_events (dpy);
       if (delay) usleep (delay);
     }
 }