Carsten Haitzler (The Rasterman) escreveu:
(B
(B> 
(B> xshape in my experience works perfectly - so you can pretty much discount bugs
(B> there. the simplest way to use it is XShapeCombineMask() where you create a 
(B> 1bit
(B> pixmap where 0 bits are "transparent" and 1 bits are solid - draw it, fill it
(B> then set the shape for your window. the pixmap is no longer needed after you 
(B> set
(B> the mask as it is converted into a list of rectangles so you can free it. 
(B> other
(B> ways are to set the rectangle list yourself with XShapeCombineRectangles()
(B> (always set the rectangle ordering to unordered to avoid bugs). you can also 
(B> use
(B> the shapes of other windows and merge/combine them (if another window already
(B> has the shape you want - eg a window manager wants to use the client window's
(B> shape and COMBINE it with its own frame window shape) using
(B> XShapeCombineShape(). some of the best code u'll find inside windowmanagers to
(B> do some of this :) pick any one. enlightenment does a fair bit with shapes for
(B> example. :) other wm's should be equally good.
(B
(BHello Carsten.
(B
(BI'm the brazilian guy you met in 2002 at LCA, I don't know if you
(Bremember me.
(BThanks for the answer, I'll check enlightenment out. What's bugging me
(Bis that I'm quite sure I'm creating the mask correctly but looks like
(Bwhen I apply quick changes to the mask on the window, it stops to
(Brespond correctly but as you said, XShape should work fine so I'll
(Bdouble check if I'm really not messing the mask. Anyway, thanks for the
(Btips.
(B
(BAdilson.
(B
(B-- 
(BNullum magnum ingenium sine mixtura dementiae fuit - Seneca
(B_______________________________________________
(BDevel mailing list
([email protected]
(Bhttp://XFree86.Org/mailman/listinfo/devel

Reply via email to