Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: keith@expo.lcs.mit.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: Sharing color cells between applications Message-ID: <9101312216.AA12651@xenon.lcs.mit.edu> Date: 31 Jan 91 22:16:34 GMT References: <1991Jan31.190631.13785@viewlogic.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 14 > The problem comes when the first application exits, but subsequent > applications stay up. The server allows those color cells to be > reused, which makes the subsequent applications go technicolor. Have the client which creates the property open another server connection for this, allocate the colors, create a 1x1 pixmap, set the close down mode to RetainPermanent and put the XID of the pixmap along with the other infomation inside that property on the root window. To get rid of the shared colors, you'll just need to do a KillClient on the pixmap ID (which is what it's for). Check out how the various root-window setting applications register the root pixel value inside a property along with a pixmap.