Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!acorn!ixi!ixi!paul From: paul@x.co.uk (Paul Davey) Newsgroups: comp.windows.x Subject: Re: Popup problems under twm, tvtwm but not mwm Message-ID: Date: 26 Nov 90 18:00:08 GMT References: <216@ptcburp.ptcbu.oz.au> Sender: paul@x.co.uk (Paul Davey) Organization: IXI Ltd. Lines: 30 In-Reply-To: fbm@ptcburp.ptcbu.oz.au's message of 22 Nov 90 07:27:25 GMT In article <216@ptcburp.ptcbu.oz.au> fbm@ptcburp.ptcbu.oz.au (Farrell McKay) writes: -> The correct behaviour of APPLICATION_MODAL popup widgets is at least -> partly dependent upon which window manager one uses. Specifically, -> these widgets do not behave correctly under twm, or tvtwm. :-( -> -> My X program is based on the Motif 1.0 widget set. I am using an -> XmMessageDialog widget to stop the application and report fatal errors, -> but without stopping any other applications. -> -> Under mwm everything works just fine and dandy. Under twm or tvtwm, however, This problem is due to a bad design fault in Motif 1.0, viz assuming that Mwm is the only window mangler (:-) that would be used. 1.1 corrects this behaviour by using XtAddGrab in the toolkit which you can use with 1.0 to get the proper behaviour. XtAddGrab is designed to work with cascades of widgets be these sub menus or dialog boxes popped up from dialog boxes. XtAddGrab has a flag to allow previous popup widgets in a cascade to be excluded from a new `grab'. (This `grab' is not an X grab, it's done by the dispatcher within the intrinsics, ie at the client end). -- Regards, pd@x.co.uk IXI Limited Paul Davey pd@ixi.uucp 62-74 Burleigh St. ...!uunet!ixi!pd Cambridge U.K. "These are interesting times" +44 223 462 131 CB1 1OJ