http://apple.doit.wisc.edu/mirrors/amug/linux/linuxppc/sources/tarballs/xscreensaver...
[xscreensaver] / hacks / qix.c
index 24ea10bafbe078983767d16c9746b722449ff21e..924b5422595c810d907477673f5c7fb58e1c3dca 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
@@ -454,8 +454,8 @@ qix1 (Display *dpy, Window window, struct qix *qix)
 char *progclass = "Qix";
 
 char *defaults [] = {
-  "Qix.background:     black",         /* to placate SGI */
-  "Qix.foreground:     white",
+  ".background:        black",
+  ".foreground:        white",
   "*count:     1",
   "*segments:  50",
   "*poly:      2",
@@ -504,7 +504,8 @@ screenhack (Display *dpy, Window window)
     for (qn = q1; *qn; qn++)
       {
        qix1 (dpy, window, *qn);
-       XSync (dpy, True);
+       XSync (dpy, False);
+        screenhack_handle_events (dpy);
        if (delay) usleep (delay);
       }
 }