Path: utzoo!attcan!uunet!husc6!bloom-beacon!franz.COM!jdi From: jdi@franz.COM (John Irwin) Newsgroups: comp.windows.x Subject: Re: Awm infinite loop problem revisited Message-ID: <8906232201.AA16013@sparky.Franz.COM> Date: 23 Jun 89 22:01:41 GMT References: <3512@ncar.ucar.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 45 Your message: A couple days ago I posted a question about an awm problem I have noticed, wherein awm will go into an infinite loop occasionally when f.iconify is invoked from a mouse button. I asked if anybody else had checked into it, but didn't get any affirmative responses, so I started digging, and I have an idea as to what is happening. The following line appears in my .awmrc file: f.iconify= m :window|icon: left down ... Jonathan Corbet National Center for Atmospheric Research, Field Observing Facility corbet@stout.ucar.edu -------- I had the same problem, but was told it didn't exist. :-) Here is the fix: *** /tmp/Iconify.c Fri Jun 23 14:50:07 1989 - - --- Iconify.c Tue Feb 28 13:48:21 1989 *************** *** 230,234 **** status = XWarpPointer (dpy, None, to, 0, 0, 0, 0, toInfo.width / 2, toInfo.height / 2); ! Leave(FALSE) } - - --- 230,234 ---- status = XWarpPointer (dpy, None, to, 0, 0, 0, 0, toInfo.width / 2, toInfo.height / 2); ! Leave(TRUE) } I don't know how this fix interacts with iconification if you use the up event as another poster suggested. But it does fix the problem if you use down events. -- John Irwin, jdi@franz.com