 Re: Q: Colormaps with dialog shells
Organization: Open Software Foundation
Lines: 29

  writes:
| 
| I have an applicationShell which uses a colormap created with
| XCreateColormap and uses all of the colors available for my 8-bit
| display....When I popup a dialogShell to prompt the user for
| some input I want the XmNdialogStyle to be set to
| XmDIALOG_PRIMARY_APPLICATION_MODAL.  The result is that if my cursor is
| over the dialogShell I get my colormap, but if the cursor is over the
| applicationShell  I get the
| default colormap.  But I'd like it so that if my cursor is over _any_
| window of my application, I get my colormap.

I *think* this is correct behavior.  Remember the default
colormapFocusPolicy is keyboard .  Since the dialog is modal, mwm won't allow keyboard
focus onto your main shell, and so it won't allow cmap focus either.

Since it sounds as though you have keyboardFocusPolicy:pointer, I
suggest you set colormapFocusPolicy:pointer also.  That way, the cmap
focus won't slavishly follow keyboard focus, but will beat its own path.

.
-- 
David Brooks					
Open Software Foundation			uunet!osf.org!dbrooks
Showres soote my foote

