[comp.windows.x] Transparent windows?

spike@bu-cs.BU.EDU (Spike) (09/19/88)

	A simple question:  Can you create a transparent window under
X-Windows?

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (09/19/88)

> A simple question:  Can you create a transparent window under X-Windows?

It depends on what you mean by "transparent window":

    1.  A window that has no background and which doesn't cause output to 
	other windows to get clipped (i.e. stuff drawn "beneath" the 
	transparent window still shows up even though it is "covered").

		Nope.  Not in the core X11 Protocol.

    2.  A window whose "contents" are never visible, but can still receive
	input events (more like "invisible" windows).

		Yes.  Create an InputOnly window using XCreateWindow.

    3.  A window that has no background but is used for clipping graphics.

		Yes.  Create a GC with a client clip region.


Note that these are all different from windows with background of None.
Setting a window not to have a background is simply an indication to the server
that you are going to fully repaint the window anyway and that it isn't worth
filling it with some arbitrary pattern.


						Jim Fulton
						MIT X Consortium

jim@wor-mein.UUCP (Jim Chekerylla) (09/21/88)

In article <24955@bu-cs.BU.EDU> spike@.UUCP (Joe Ilacqua) writes:
>
>	A simple question:  Can you create a transparent window under
>X-Windows?

Also, what happens (on a Sun 3/60 or a Qvss VAXstation) when you ERASE a
line from a transparent window? Is there any simulation of multiple planes
so that the contents of the other planes are not erased too?

-- 

================================================================================
Jim Chekerylla - Quantum Medical Systems - Issaquah, Washington
uunet!wor-mein!jim
================================================================================