http://apple.doit.wisc.edu/mirrors/amug/linux/linuxppc/sources/tarballs/xscreensaver...
[xscreensaver] / hacks / xroger-hack.c
index d8db872c8a401c3e42ee3f9360ffc9a62cbe333d..f4fa11640811d6cd6d1ee2bf24798de6fe01b4a2 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1991-1994 Jamie Zawinski <jwz@netscape.com>
+/* xscreensaver, Copyright (c) 1991-1994 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
@@ -14,8 +14,8 @@
 char *progclass = "XRoger";
 
 char *defaults [] = {
-  "XRoger.background:  black",
-  "XRoger.foreground:  red",
+  ".background:                black",
+  ".foreground:                red",
   "*delay:             5",
   0
 };
@@ -73,7 +73,8 @@ screenhack (dpy, window)
 
 
       skull (dpy, window, draw_gc, erase_gc, x, y, ww, hh);
-      XSync (dpy, True);
+      XSync (dpy, False);
+      screenhack_handle_events (dpy);
       start_time = time ((time_t *) 0);
       if (mono_p)
        sleep (delay);