[comp.windows.x.motif] Return mail

edmark@ISI.COM (Ron O. Edmark) (05/14/91)

>>>A closer look at olwm reveals that it is looking at an  _OL_WIN_ATTR window
>>>property to set the decorations (see pages 70-72 of OLIT Widget Set
>>>Programmer's Guide).  I was going to set the "menu_type" atom to
>>>_OL_MENU_LIMITED for all of our popups but I have been working on a bigger
>>>problem.  None of our option menus work correctly they popup but then pop
>>>right back down.

>> I saw this problem once. The solution was this: The background window was
>> being raised when the menu was posted, obscuring it imiediately. Of course,
>> once in a while the events would get processed in reverse order and it would
>> work. The raise was getting called when focus to the dialog shell was
>> received, and this was removed. It worked fine ever since.
>> Does the cursor do funny things when this happens to you?
>> (the cursor pointed a different direction in
>> the popup menu, this wrong direction persisted even though the popup was
>> not visible, until you clicked the mouse.

That's It!!!

In our event loop we check for any modal dialogs we may have poped-up. If we
have one up then we make sure It is raised to the top of the window stack.
we were raising it over the option menu. This problem does not happen when
we are using twm or mwm.

Thanks!!!

    +---------------------------------------------------------------------+
    | Ron Edmark                          User Interface Group            |
    | Tel:        (408) 980-1500 x282     Integrated Systems, Inc.        |
    | Internet:   edmark@isi.com          3260 Jay St.                    |
    | Voice mail: (408) 980-1590 x282     Santa Clara, CA 95054           |
    +---------------------------------------------------------------------+