Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!rutgers!bellcore-2!bellcore!cellar!aw From: aw@cellar.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x Subject: xloadimage -onroot Message-ID: <27506@bellcore.bellcore.com> Date: 3 Oct 90 20:12:05 GMT Sender: news@bellcore.bellcore.com Reply-To: aw@cellar.bae.bellcore.com Organization: Bell Communications Research Lines: 26 When I do an xloadimage -onroot, how do I later free and get rid of the pixmap on the root window? I noticed xloadimage does an XSetCloseDownMode(dpy, RetainPermanent); so that the pixmap will not be freed when it exits. It also puts a property on the root window with the pixmap id. "xprop -root" returns: XA_XLOADIMAGE_COLORS_XID(PIXMAP): pixmap id # 0x1500003 If I do an "xkill -id 0x1500003", will that free the pixmap? The image remains on the root window after I do this. Is it still using memory in the server? If I do an "xsetroot -solid blue", the root window clears to blue, but is the pixmap I previously loaded with xloadimage still wasting memory? Thanks, Andrew -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw