Comment 28 for bug 756273

Revision history for this message
Thomas Dickey (dickey-his) wrote :

I see (now, having read through the changes, and made a test-case). The fix in #226
was for the core-dump. The report was for two errors, and one was not addressed.
I can see that it's dying in the call in menu.c
   XtCallActionProc(w, "XawPositionSimpleMenu", event, params, 1);

The widget itself is okay (commenting out that call makes it "work").
But the problem is in the Xaw library. Reading the source code, that
causes it to go into a case-statement where the normal event types
are ButtonPress, ButtonRelease, etc. None of the normal types apply;
it goes into a default case for
   PositionMenu(menu, NULL);
which asks it to get the child-window of the menu-widget which encloses
the pointer. However, the pointer is probably outside the menu widget
since it's pointing to the vt100 window. So the XQueryPointer call fails

I might be able to appease it by checking for this case and warping the
pointer onto the menu widget (will see).

thanks for the feedback