Am 20.05.2012 05:30, schrieb Keith Packard: > Glynn Clements <gl...@gclements.plus.com> writes: > >> That seems to imply that the X server makes a copy of the pixmap data >> rather than keeping a reference to the original pixmap. However, I >> don't believe that's how the X.org server actually implements it. > > No, it keeps a reference, but not through the Pixmap ID, so while the > client can destroy the ID, the server holds a reference to the > underlying Pixmap structure itself. No copy is made. >
Hello keith, i am not an X11 expert, and i am not sure that i understand your answer. So far i understand the problem was how to free the old one and the answer is there is no need to free since you should set the pixmap like this: newpm=xcreatepix() XSetWindowBackgroundPixmap(newpm) xfreepixmap(newpm) Is that what you are saying ? re, wh _______________________________________________ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com