[Thread Prev][Thread Next]   >Date Index >Thread Index

Re: [wmx] Shapes and stuff (GQmpeg now looks good)

henri - Mon Jul 12 17:43:58 1999

cannam <cannam@all-day-breakfast.com> wrote: 

> henri <henri@asu.edu> writes:
> > 
> > www.nidal.com/~henri/wmx
> > 
> > has my latest hack (only tested w/ one app, GQmpeg). it detects if a window
> > is using the shapes extensions (hopefully it's not rectangular) and
> > "hides" the title tab and background so it looks like it would under E
> > or something.
> I suspect the "right" way to do this is to reshape the background rather
> than removing it, although removing the titles would be okay.  I haven't
> tested your hack though; I guess whatever seems to work works.

that's what i do, call XShapeGetRectangles then use those rectangles
to shape the background... i guess my email wasn't too clear. If the
window has any shape rectangles set then i treat it as a transiant,
reshape the background, and don't set the border around it when it has
focus (it works ok, but looks wrong, i think any shaped window should
be smart enough to show that it has focus, offer some way of
minimizing itself, etc.)

> Chris
>  must get myself to a unix box again sometime

welcome back.