-/* xscreensaver, Copyright (c) 1997 Jamie Zawinski <jwz@netscape.com>
+/* xscreensaver, Copyright (c) 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
char *progclass = "Starfish";
char *defaults [] = {
- "*background: black",
- "*foreground: white",
+ ".background: black",
+ ".foreground: white",
"*delay: 10000",
"*cycleDelay: 100000",
"*thickness: 0", /* pixels, 0 = random */
while (1)
{
run_starfish (dpy, window, s);
- XSync (dpy, True);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
if (cycle_p && cycle_delay)
{
if (cycle_delay <= delay)
while (i < delay2)
{
rotate_colors (dpy, cmap, colors, ncolors, direction);
+ screenhack_handle_events (dpy);
usleep(cycle_delay);
i += cycle_delay;
}