[comp.windows.x] drawing rectangles over windows

aob@lanl.gov (Alexander O. Brown) (07/11/90)

I am trying to draw rectangles in the whole screen, not just in
one particluar window.  If I try drawing in root using XDrawRectangles,
is will draw only in root and not in the subwindows that are on top
of it.  Is there any way I can draw over the whole screen by putting
a transparent window on top of it or something?

Incidentally, I am trying to do this because I am trying to create a
"rubber band" to circle a area of the screen to dump.  If anyone has
done this or knows of a code in which this is done, please tell me.

Any help would be greatly appreciated !!

				Alex Brown
				aob@beta.lanl.gov

klee@wsl.dec.com (Ken Lee) (07/14/90)

In article <56680@lanl.gov>, aob@lanl.gov (Alexander O. Brown) writes:
|> I am trying to draw rectangles in the whole screen, not just in
|> one particluar window.

Check out the subwindow-mode field of the drawing GC.  IncludeInferiors
cause the drawing area to include the inferior windows.

Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee