[comp.windows.x] SUMMARY: Transparent Windows

kall@MAYO.EDU (Bruce Kall) (11/13/90)

My original query was:


> Does anybody have a suggestion about how to make a Xlib window
> transparent except for items drawn in it with GCs in an opaque color?

I received two responses:

From: mouse@Larry.McRCIM.McGill.EDU and barry@visix.com

Both said I could use the SHAPE extensions.  Extenstions are extensions so I
didn't
want to use them since we want a pure Xlib environment.

barry@visix.com also said:

> Just set the background pixmap to `None' and don't set a background
> color.  Also set the border width to zero.  Naturally don't clear the
> window or it will erase what it is covering.
> The problem with this is if the window underneat your button is being
> updated it will screw things up (the information under the transparent window
> will not be updated, so the `see through' portion will retain the
> old information).


This suggestion works well for what I wanted to do which is to put
up a pop-up menu that may be on top of another (or more than one other) window
or on top of an gray scale image.

Thanks to mouse@Larry.McRCIM.McGill.EDU and barry@visix.com.





\------------------------------------------------------------\
 \   Bruce Kall                \  Internet:   Kall@Mayo.edu   \
  \   Mayo Clinic (Foundation)  \  Phone: (507)-255-4768       \
   \   Rochester, MN 55905       \                              \
    \------------------------------------------------------------\