[comp.windows.x.motif] XmList callbacks with NIL events

jhc@ivan.uucp (03/21/91)

In some cases, at least, XmList sets the event structure to NIL before
calling callbacks.  I need to determine which button was used to select
an item in a list.  Is there a good way to get at this information?

My goal:  When the user presses mouse button 3 on an item in the list,
a pop up comes up with full information on the item.

I can set the translations so that Button3 selects items from the
list.  But now I find that XmList is not giving me the event
information that I need to distinguish Button1 selects from Button3
selects.

I think it would be a mistake to try to determine the list item from
the pointer position.  It would be a LOT easier and more reliable to
just implement my own main event loop and make the current event
available to my application as needed.  Does X provide this access some
place?

Unless there is some good motivation for discarding the information, I
think XmList should be modified to provide the events to callbacks.

--Jim