Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!edsews!uunet!ingr!doyle From: doyle@ingr.com (Doyle Davidson) Newsgroups: comp.windows.x Subject: BUG and FIX in twm Keywords: twm Message-ID: <4298@ingr.com> Date: 8 Mar 89 20:55:51 GMT Organization: Intergraph Corp. Huntsville, Al Lines: 37 I have discovered and bug in twm and how to fix it. (If you have source) The problems has to do with twm losing events. This may show up as windows not being mapped (displayed) etc. It appears that Mr. LaStrange goofed on a few calls to XSync() in that he forget the second parameter that says whether or not to discard all events in the input queue. In my program, twm was losing MapRequest events and windows would never get mapped! To solve the problem change the following in 'add_window.c': XSync(dpy); <- this is the one that hurt to XSync(dpy, False); and in 'twm.c' change the TWO calls: XSync(dpy, screen); <- screen? old X10 or something? to XSync(dpy, False); If this is an already reported bug then pardon me but I just found this and I noticed other people were having problems that seemed to be caused by this. Otherwise I like twm and use it myself. ------------------------------------------------------------------ Doyle C. Davidson | Intergraph Corp. | These comments are... Workstation Graphics Standards | 1 Madison Industrial Park | \\ / Huntsville, AL 35806 | \\/ (xxx) xxx-xxxx | /\\ clusively my own. | / \\ ..!uunet!ingr!b11!doyled!doyle | ..!uunet!ingr!doyle | ------------------------------------------------------------------