andrew@erm.oz (Andrew Hunt) (09/06/90)
Dear net I am trying to get a serious image processing application, ER Mapper, running under Openwindows 2.0 (beta) and cannot get the window manager to behave in a sensible way with respect to colormaps. Whenever the cursor is moved over the workspace area, the default colormap is re-installed by the window manager (olwm). This behavior makes it all but impossible to run a serious image processing application under Openwindows. The only time the right colormap is installed is when the cursor is actually over one of the application's windows. What I want the window manager to do is to leave my application's color map installed when the cursor is moved onto the workspace. Motif Window Manager (mwm) seems to do this just fine, but I can't get olwm to behave in this way. The following solutions have been tryed: 1. XSetWindowColormap( dpy, XtWindowOfObject(toplevel), my_map); Results in my_map being installed when the cursor is moved into the toplevel window of my client, the window manager re-installs the default colormap when I move out onto the workspace. 2. XSetWindowColormap( dpy, RootWindowOfScreen(screen), my_map); Does not work with Openwindows 2.0 (beta), used to work with Openwindows 1.0 3. XInstallColormap( dpy, my_map); Pre-X11R3 antisocial behavior, works with olwm, but when cursor is moved over decorations or workspace, default colormap is re-installed by olwm. 4. Modification of olwm source to provide the desired behavior. Has been done successfully. Is not desirable because the version of olwm shipped with Openwindows has some postscript extensions which are not part of the public domain version. The patched version of olwm core dumps on .olwmmenu files with the postscript extensions in them. Also providing a patched version of olwm is a bad solution because it has to be maintained and kept in sync with changes to the Openwindows version. Has anyone got any ideas as to how to solve or work around this problem. Thanks in advance Andrew Hunt -- Earth Resource Mapping, 316 Churchill Avenue, Subiaco, Western Australia 6008 Phone: +61 9 388 2900 Fax: +61 9 388 2901 ACSnet: andrew@erm.oz
smarks@trantor.Eng.Sun.COM (Stuart Marks) (09/07/90)
|> I am trying to get a serious image processing application, ER Mapper, |> running under Openwindows 2.0 (beta) and cannot get the window |> manager to behave in a sensible way with respect to colormaps. The solution is to get the final release of OpenWindows 2.0. The version of olwm in that release has a more flexible colormap installation policy. I believe it will satisfy your needs. You can also get this version of olwm from the contrib area on expo. It's included with the XView 2.0 distribution. s'marks -- Stuart W. Marks ARPA: smarks@eng.sun.com Window Systems Group UUCP: sun!smarks Sun Microsystems, Inc.