X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdecayscreen.c;h=da6a5fef770826f6f955aa050f7a2642bf6850b8;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hp=ed7a084007b1a19ea7ff847a710cad04c12cc7c3;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08;p=xscreensaver diff --git a/hacks/decayscreen.c b/hacks/decayscreen.c index ed7a0840..da6a5fef 100644 --- a/hacks/decayscreen.c +++ b/hacks/decayscreen.c @@ -1,5 +1,5 @@ /* xscreensaver, Copyright (c) 1992, 1993, 1994, 1996, 1997 - * Jamie Zawinski + * 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 @@ -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; @@ -206,6 +207,7 @@ screenhack (Display *dpy, Window window) for (i = 0; i < 100; i++) decay1 (dpy, window); XSync(dpy, False); + screenhack_handle_events (dpy); if (delay) usleep (delay); } }