-/* 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 = "Deco";
char *defaults [] = {
- "*background: black",
- "*foreground: white",
+ ".background: black",
+ ".foreground: white",
"*maxDepth: 12",
"*minWidth: 20",
"*minHeight: 20",
XFillRectangle(dpy, window, bgc, 0, 0, xgwa.width, xgwa.height);
deco (dpy, window, xgwa.colormap, fgc, bgc,
0, 0, xgwa.width, xgwa.height, 0);
- XSync (dpy, True);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
if (!delay) continue;
if (!writable)
while (start - delay < time((time_t) 0))
{
rotate_colors (dpy, xgwa.colormap, colors, ncolors, 1);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
if (cycle_delay)
usleep (cycle_delay);
}