X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fshadebobs.c;h=d384605add37067ddf55db4ccc62a4b5b945982a;hp=670d667750f6abd2e445212f7dc1634913edc2bd;hb=14627f4038ada5d11456f3770090f3c39740d70f;hpb=93f25dc6827112d98b8b855ea85c8f5eb8123086 diff --git a/hacks/shadebobs.c b/hacks/shadebobs.c index 670d6677..d384605a 100644 --- a/hacks/shadebobs.c +++ b/hacks/shadebobs.c @@ -384,13 +384,17 @@ void screenhack(Display *pDisplay, Window Win ) if( i++ >= cycles ) { + XWindowAttributes XWinAttribs; + XGetWindowAttributes( pDisplay, Win, &XWinAttribs ); + i = 0; - XClearWindow( pDisplay, Win ); memset( pImage->data, 0, pImage->bytes_per_line * pImage->height ); for( iShadeBob=0; iShadeBob