X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fgreynetic.c;h=1377c95d61e5793022d2bf6c3fbb673ce54c8756;hb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;hp=c3f5fbaf0c22b322ba14d9bcadb0ff29c0f729ba;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/greynetic.c b/hacks/greynetic.c index c3f5fbaf..1377c95d 100644 --- a/hacks/greynetic.c +++ b/hacks/greynetic.c @@ -1,5 +1,5 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1995, 1996, 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 @@ -152,15 +152,15 @@ greynetic (Display *dpy, Window window) } XChangeGC (dpy, gc, GCStipple|GCForeground|GCBackground, &gcv); XFillRectangle (dpy, window, gc, x, y, w, h); - XSync (dpy, True); + XSync (dpy, False); } char *progclass = "Greynetic"; char *defaults [] = { - "Greynetic.background: black", /* to placate SGI */ - "Greynetic.foreground: white", + ".background: black", + ".foreground: white", "*delay: 0", 0 }; @@ -177,6 +177,7 @@ screenhack (Display *dpy, Window window) while (1) { greynetic (dpy, window); + screenhack_handle_events (dpy); if (delay) usleep (delay); } }