- gcv.function = GXcopy;
- gc = XCreateGC (dpy, window, GCFunction, &gcv);
- XCopyArea (dpy, window, p, gc, 0, 0, *widthP, *heightP, 0, 0);
-
- XFreeGC (dpy, gc);
+ XClearWindow(dpy, window);
+ load_random_image (xgwa.screen, window, p, NULL);
+ XClearWindow(dpy, window);