← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 756273] Re: xterm dies on popup-menu action

 

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

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xterm in Ubuntu.
https://bugs.launchpad.net/bugs/756273

Title:
  xterm dies on popup-menu action


Follow ups

References