XSetBackgroundPixmap question

walter harms wharms at bfs.de
Sun May 20 07:10:54 PDT 2012



Am 20.05.2012 05:30, schrieb Keith Packard:
> Glynn Clements <glynn at 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



More information about the xorg mailing list