Path: utzoo!attcan!uunet!mcsun!hp4nl!esatst!yc.estec.nl!neil From: neil@yc.estec.nl (Neil Dixon) Newsgroups: comp.sys.hp Subject: Re: MOTIF/Starbase/Turbo SRX Combined Mode Message-ID: <1406@esatst.yc.estec.nl> Date: 29 Jun 90 07:06:21 GMT References: <1405@esatst.yc.estec.nl> <7370162@hpfcso.HP.COM> Sender: usenet@yc.estec.nl Reply-To: neil@yc.estec.nl (Neil Dixon) Organization: ESTEC/YC Lines: 46 In article <7370162@hpfcso.HP.COM>, stroyan@hpfcso.HP.COM (Mike Stroyan) writes: |>if (!property_set) { |> Atom WM_COLORMAP_WINDOWS, WINDOW; |> Window windows[2]; |> |> property_set = 1; |> |> WM_COLORMAP_WINDOWS = XInternAtom(XtDisplay(widget), |> "WM_COLORMAP_WINDOWS", False); |> WINDOW = XInternAtom(XtDisplay(widget), "WINDOW", False); |> windows[0] = XtWindow(widget); |> windows[1] = XtWindow(toplevel); |> XChangeProperty(XtDisplay(widget), XtWindow(toplevel), |> WM_COLORMAP_WINDOWS, WINDOW, 32, PropModeReplace, |> (char *) windows, 2); |>} I'd made the mistake of using the XA_WINDOW atom, rather than interning an atom for the widget. |> |>There is a problem with the current, (OSF 1.0, HP-UX 7.0), release of |>mwm. It gets confused about whether it has installed a colormap for a |>window id when the window id has been reused. If your mwm is not |>installing the colormap for repeated use of a program, you can use the |>mwm f.restart function to reset the window manager and fix the behavior. f.restart doesn't seem to work every time. Quiting mwm and restarting seems to. |>There are a variety of other problems with handling colormap |>installation and the WM_COLORMAP_WINDOWS property in many other current |>window managers. We can only hope that they all will quickly improve. |> I made a quick test with twm, and that never seems to install the colormap at all. Anyone know of similar problems with other (supposedly ICCCM) compliant window managers. P.S. Thanks for the help (once again!!!). Neil Dixon UUCP:...!mcvax!esatst!neil, BITNET: NDIXON@ESTEC Thermal Control & Life Support Division (YC) European Space Research and Technology Centre (ESTEC), Noordwijk, The Netherlands.