Path: utzoo!attcan!uunet!lll-winken!ames!ig!bionet!agate!ucbvax!bloom-beacon!APPLE.COM!alan From: alan@APPLE.COM (Alan Mimms) Newsgroups: comp.windows.x Subject: GrabServer/UngrabServer nesting?!? Message-ID: <8904140209.AA11503@internal.apple.com> Date: 14 Apr 89 02:09:08 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 19 Does it make sense to say that the server grabbing and ungrabbing requests CAN'T be nested? The sample server seems to implement this functionality in a way that will NOT properly handle nesting of grabs and ungrabs (where "properly" is defined as "in a way that works when the user wishes ONLY the most recent grab to be ungrabbed, leaving 'outer nested' grabs active until they, in turn, are ungrabbed"). I note with interest that "twm" does nested grabs quite a lot. When it is adding a window to is managed list, it grabs the server and then calls alot of other routines which eventually result in several grab/ungrab combinations. Finally, it does an ungrab -- ostensibly to release the original server grab. Does anyone have any comments? Am I completely out to lunch? Alan Mimms My opinions are generally Communications Product Development Group pretty worthless, but Apple Computer they *are* my own... "The company has new jobs and Jobs has a new company" -- Harry Anderson