Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpcvlx!harry From: harry@hpcvlx.cv.hp.com (Harry Phinney) Newsgroups: comp.sys.hp Subject: Re: starbase under X11 Message-ID: <101950182@hpcvlx.cv.hp.com> Date: 1 Feb 91 01:51:14 GMT References: <1991Jan29.211522.12751@sunee.waterloo.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 19 Gordon R. Strachan writes: > When I create the X window, I set the XSetCloseDownMode > to RetainTemporary so that the window isn't destroyed when the program > terminates. > Now, everything works fine, the colour map is used and is installed by the > window manager when the graphics window has the input focus. But when the > program terminates and I call gclose, the starbase colour map disappears and > the default X colour map is reloaded. The window is "owned" by a different client (one which set its closeDownMode to RetainTemporary) than the colormap. For various reasons the Starbase library opens its own connection to the server. This means that the server considers the Starbase library to be a different client than the rest of the program. Even if you create the window within your program, the server will not retain the resources created by the Starbase library. Harry Phinney harry@hp-pcd.cv.hp.com