p = XCreatePixmap(dpy, window, *widthP, *heightP, xgwa.depth);
gcv.function = GXcopy;
gc = XCreateGC (dpy, window, GCFunction, &gcv);
p = XCreatePixmap(dpy, window, *widthP, *heightP, xgwa.depth);
gcv.function = GXcopy;
gc = XCreateGC (dpy, window, GCFunction, &gcv);