X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdeco.c;h=ae908051f05120448461673190127960ba973ba7;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=63ca3aead71674281d1f301aca49c36731740f43;hpb=c6b273ef7292ba10943694df1656b05203d7b62f;p=xscreensaver diff --git a/hacks/deco.c b/hacks/deco.c index 63ca3aea..ae908051 100644 --- a/hacks/deco.c +++ b/hacks/deco.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997, 1998 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -59,8 +59,8 @@ deco (Display *dpy, char *progclass = "Deco"; char *defaults [] = { - "*background: black", - "*foreground: white", + ".background: black", + ".foreground: white", "*maxDepth: 12", "*minWidth: 20", "*minHeight: 20", @@ -133,7 +133,8 @@ screenhack (Display *dpy, Window window) 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) @@ -144,6 +145,8 @@ screenhack (Display *dpy, Window window) 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); }