Path: utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: problems with XGetStandardColorMap().. Message-ID: <8908282033.AA00540@expire.lcs.mit.edu> Date: 28 Aug 89 20:33:56 GMT References: <8908281615.aa02195@SPARK.BRL.MIL> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 28 Yet every R3 based server that I've layed hands on has returned "Success" to XGetStandardColormap() while the XStandardColormap struct info is all zero. Haven't the time now to see if there's an R3 bug. The following fails correctly in our development system: #include #include #include main() { Display *dpy; XStandardColormap cmap; dpy = XOpenDisplay(0); if (!XGetStandardColormap(dpy, DefaultRootWindow(dpy), &cmap, XA_RGB_BEST_MAP)) printf("failed\n"); XCloseDisplay(dpy); exit(0); } It seems to me though that these are pretty closely tied to the server specifics and the Visuals that it supports. Wouldn't it make sense for the server to create some of these? I don't think so.