Can I ask about developping *with* XFree or just *on* XFree
Hello. I'm developping applications using xlib functions. Can I ask my quastions about it here or this list is just about developing XFree itself? Thanks Adilson. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Re: Can I ask about developping *with* XFree or just *on* XFree
Tim Roberts escreveu: Adilson Oliveira wrote: Hello. I'm developping applications using xlib functions. Can I ask my quastions about it here or this list is just about developing XFree itself? You can ask them, and they'll probably get answered quickly and accurately, but we'll have to make fun of you when we do. As long as you can deal with that, ask away. Make fun of me? I'm 36 year old geek-born who's came from public and military schools. I think I can handle a bit of fun. I'm used to pain :) I'll fire anyway to see if I'm lucky. Thanks a lot. Adilson. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Working with XShape
Hello. I hope Tim Robert's right and I got some good responses about this besides the bashing :) I'm working on an application which needs to use XShape extension to create a window with a transparent background. So far so good, the problem is that this mask has to be changed constantly, using the window background as key to it. Right now what I'm doing, is for every bitmap I need to put on the window, I scan for the background color, create the mask, put the image and apply the mask using XShapeCombineShape. Should be straightforward I think, but I'm getting all sort of weird things like the mask not doing any effect, etc. I experimented on creating a fix mask and apply. This works very well, the problem seens to arise when I try to manipulate the bitmap mask and use it several times. The documentation I found do far is very thin specialy on examples how to use other XShape related functions like XShapeOffsetShape, XShapeCombineMask, etc. I took a look in programs that uses it like oclock, xteddy, etc but they don't go deep on it. Does anyone knows a better source of documentation about XShape and it's related fuctions in general. Perhaps I'm messing with the bitmap mask but all the tests I made so far indicates that it's been created correctly. Any advice will be very apreciated. []s and thanks. Adilson. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Re: Can I ask about developping *with* XFree or just *on* XFree
Mark Vojkovich escreveu: http://www.rahul.net/kenton/xsites.framed.html Lot's of good stuff. I'll check this out. Thanks Mark. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Xshape extension
Hello. I'm sorry to bring this subject again but I really could use some help here. I'm working on an application which needs to use XShape extension to create a window with a transparent background. So far so good, the problem is that this mask has to be changed constantly, using the window background as key to it. Right now what I'm doing, is for every bitmap I need to put on the window, I scan for the background color, create the mask, put the image and apply the mask using XShapeCombineShape. Should be straightforward I think, but I'm getting all sort of weird things like the mask not doing any effect, etc. I experimented on creating a fix mask and apply. This works very well, the problem seens to arise when I try to manipulate the bitmap mask and use it several times. The documentation I found do far is very thin specialy on examples how to use other XShape related functions like XShapeOffsetShape, XShapeCombineMask, etc. I took a look in programs that uses it like oclock, xteddy, etc but they don't go deep on it. Does anyone knows a better source of documentation about XShape and it's related fuctions in general. Perhaps I'm messing with the bitmap mask but all the tests I made so far indicates that it's been created correctly. Any advice will be very apreciated. []s and thanks. Adilson. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Re: Xshape extension
Carsten Haitzler (The Rasterman) escreveu: > > xshape in my experience works perfectly - so you can pretty much discount bugs > there. the simplest way to use it is XShapeCombineMask() where you create a > 1bit > pixmap where 0 bits are "transparent" and 1 bits are solid - draw it, fill it > then set the shape for your window. the pixmap is no longer needed after you > set > the mask as it is converted into a list of rectangles so you can free it. > other > ways are to set the rectangle list yourself with XShapeCombineRectangles() > (always set the rectangle ordering to unordered to avoid bugs). you can also > use > the shapes of other windows and merge/combine them (if another window already > has the shape you want - eg a window manager wants to use the client window's > shape and COMBINE it with its own frame window shape) using > XShapeCombineShape(). some of the best code u'll find inside windowmanagers to > do some of this :) pick any one. enlightenment does a fair bit with shapes for > example. :) other wm's should be equally good. Hello Carsten. I'm the brazilian guy you met in 2002 at LCA, I don't know if you remember me. Thanks for the answer, I'll check enlightenment out. What's bugging me is that I'm quite sure I'm creating the mask correctly but looks like when I apply quick changes to the mask on the window, it stops to respond correctly but as you said, XShape should work fine so I'll double check if I'm really not messing the mask. Anyway, thanks for the tips. Adilson. -- Nullum magnum ingenium sine mixtura dementiae fuit - Seneca ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel