http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver] / hacks / attraction.c
index 0cea509a40406b687b1c8b6a17cfdd80f945cd68..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,7 +605,7 @@ run_balls (Display *dpy, Window window)
       abort ();
     }
 
-  XSync (dpy, True);
+  XSync (dpy, False);
 }
 
 \f
@@ -661,6 +661,7 @@ screenhack (Display *dpy, Window window)
   while (1)
     {
       run_balls (dpy, window);
+      screenhack_handle_events (dpy);
       if (delay) usleep (delay);
     }
 }