http://ftp.x.org/contrib/applications/xscreensaver-3.04.tar.gz
[xscreensaver] / hacks / decayscreen.c
index ed7a084007b1a19ea7ff847a710cad04c12cc7c3..7b91f63bbd52b0cc06a25f6fcf68e39b724b96f6 100644 (file)
@@ -1,5 +1,5 @@
 /* xscreensaver, Copyright (c) 1992, 1993, 1994, 1996, 1997 
- * Jamie Zawinski <jwz@netscape.com>
+ * Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -81,6 +81,8 @@ init_decay (Display *dpy, Window window)
 
   if (delay < 0) delay = 0;
 
+  XGetWindowAttributes (dpy, window, &xgwa);
+
   gcv.function = GXcopy;
   gcv.subwindow_mode = IncludeInferiors;
   gcflags = GCForeground |GCFunction;
@@ -88,7 +90,6 @@ init_decay (Display *dpy, Window window)
     gcflags |= GCSubwindowMode;
   gc = XCreateGC (dpy, window, gcflags, &gcv);
 
-  XGetWindowAttributes (dpy, window, &xgwa);
   sizex = xgwa.width;
   sizey = xgwa.height;