XSetBackgroundPixmap question

2012-05-19 Thread James Buren
When using this Xlib function to set a new background pixmap, how does the old one get freed? If I am setting the root window's background pixmap, I don't know how I can get the XID of the old one. If it is a window I created, I can cache it but that seems overkill if I'm just wanting to discard

Re: XSetBackgroundPixmap question

2012-05-19 Thread James Buren
Wow, that was fast. Thanks. Some other questions I've been having. I've been considering using the XRender extension and I've noticed the documentation is nearly non-existent. What advantages does it offer over older Xlib drawing API? At the very least, it seems to offer more complex graphics op

Re: XSetBackgroundPixmap question

2012-05-19 Thread James Buren
> The combination of the documentation and the observed behaviour > implies that the X server *may* copy the pixmap data or it may just > keep a reference. Either way, deleting the pixmap after setting it > should be fine, but modifying a pixmap which has been used as a > background pixmap has unde