The question, then the context: I have a bitmap, A. I set this bitmask as the clip mask in my GC. If I modify A, do I have to re-call XSetClipMask() for the modifications to take effect?
I have a square area, lets say 400x400. I frequently re-paint the whole area with different sections of a larger drawable. However I have another little image that I draw on top, 30x30 in size. When I draw this little box, I have no problem doing the masking such that the little arrow symbol is drawn on top of the larger area without disturbing the image underneath. But the location of the little box also frequently changes, so making a static clipmask the size of the 400x400 area isn't the way. I'd like to be able to repaint the whole 400x400 area, without disturbing the little arrow symbol. I would like to do this with one XCopyArea() operation, because when I use more than one XCopyArea to copy the area, the artifacts are very visible. What is the method that involves the least amount of X calls, or at least is the fastest possible, method to repaint my window? Creating a subwindow and using those cool alpha channels that seem to be included in the Render extension might be the way, but I have no idea how to begin using it. Keith, even if you aren't going to release your hacked version of twm, can you tell the eager masses what the trick was to make those root-menu windows in your twm screenshot be translucent? Jonathan
msg02367/pgp00000.pgp
Description: PGP signature
