Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!uunet!ora!bloom-beacon!dont-send-mail-to-path-lines From: ekberg@asl.dl.nec.COM (Tom Ekberg) Newsgroups: comp.windows.x Subject: Re: Colormap dilemma > I am currently working on a product that contains two separate X client > applications with 128 colors each (same 128 colors for both applications). > These 128 colors have to be settable (read/write) by the application. These Message-ID: <9103131508.AA10796@aslss01.asl.dl.nec.com> Date: 13 Mar 91 15:08:55 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 14 Since you state that both applications use the same 128 colors, why not share the cells in the colormap. More than one client can use a color cell, even if it is settable. In chapter 5 of the Xlib manual it states: Although you can change the values in a read/write color cell that is allocated by another application, this is considered ``antisocial'' behavior. The idea is to have one client try to allocate 128 colors. If it fails, it would look to see if the other client already allocated its colors, and then use those. By having the two applications cooporate you should be able to get by with needing only 128 color cells. -- tom, ekberg@asl.dl.nec.com (x3503)