uucigj@gandalf.sbc.com (Gregg Jensen (5-3531)) (10/11/90)
As an exercise I wanted to add the capability to have the menus stay up after I release the button instead of going away in twm. I essentially ignore the first release and the subsequent button press and work with the second release. I have it all working properly except for when I click the button for the menu and release it very quickly. The program dumps core, and upon debugging it always comes up in UpdateMenus at the XQueryPointer function call. If I linger a little upon releasing the button the first time it works like it is supposed to. Looking in the Xlib reference manual it say that the logical state could lag behind the physical state, which seems to be the problem.(?) Any hints? BTW - I don't know if this goes against the look and feel of twm I just wanted to do it for my own purposes and for the experience. Gregg Jensen ---------------------------------------------------------------------- These opinions are my own and do not necessarily reflect my companies. Southwestern Bell Telephone ----------------------------------------------------------------------