X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fdecayscreen.c;h=832b7ca7d3a71b72dead0b42db8623add01f7461;hp=f0d4e95c6b2b4da8ca000f46f115b36628b47c2c;hb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213 diff --git a/hacks/decayscreen.c b/hacks/decayscreen.c index f0d4e95c..832b7ca7 100644 --- a/hacks/decayscreen.c +++ b/hacks/decayscreen.c @@ -330,6 +330,7 @@ decayscreen_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { struct state *st = (struct state *) closure; + if (! st->saved) return; /* Image might not be loaded yet */ XClearWindow (st->dpy, st->window); XCopyArea (st->dpy, st->saved, st->window, st->gc, 0, 0, st->saved_w, st->saved_h,