X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdeco.c;h=628deb988184d2b6b5f4ff8b35ca64447af24582;hb=6cee540bdbb571485cd5e519f89f389faebd0495;hp=3b49c09a74be7afb589cebaf42908c2b7c459cbc;hpb=ce3185de9d9705e259f2b60dd4b5509007fa17d4;p=xscreensaver diff --git a/hacks/deco.c b/hacks/deco.c index 3b49c09a..628deb98 100644 --- a/hacks/deco.c +++ b/hacks/deco.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997, 1998, 2002 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 @@ -14,6 +14,8 @@ #include "screenhack.h" #include +#include +#include static XColor colors[255]; static int ncolors = 0; @@ -133,7 +135,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 +147,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); }