I am using LessTif 0.91.0-1.i386 on RedHat 6.0 and have a pointer grab
problem.

After poping up (XtManageChild) a popup menu (in front of another
application's 
main window) I try to grab the pointer with 

    XtGrabPointer( my_main_window, True, ButtonReleaseMask,
                    GrabModeAsync, GrabModeAsync,
                    None, None, CurrentTime);

The popup is not a  button3  callback, but is invoked from an ipc message
from the other app.

The problem is I sometimes get a warning that says the following:

        Name: popup_mypopup            (NOTE: mypopup is my name for the
widget)
        Class: XmMenuShell
        Can't grab pointer.

This results in locking up the Xserver.

My buttonpick callbacks Ungrab the pointer and UnManageChildren on the
buttons (there will likely be a different number of buttons and different
labels the next time the menu is popped up.

Any suggestions on preventing the Can't grab pointer message?

thanks
Richard Mead

Reply via email to