Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!xanth!nic.MR.NET!hal!cwjcc!mailrus!husc6!ogccse!verdix!nomad From: nomad@verdix.com (Lee Damon) Newsgroups: comp.windows.x Subject: Re: twm on Sun 4 under SunOS4.0 Summary: Summary of results to question. Why it doesn't work... Message-ID: <220@verdix.verdix.com> Date: 14 Dec 88 18:46:43 GMT References: <139@verdix.verdix.com> <91600004@p.cs.uiuc.edu> Sender: netnews@verdix.com Reply-To: nomad@verdix.com (Lee Damon) Organization: Verdix Western Operations; Aloha, OR Lines: 50 In article <91600004@p.cs.uiuc.edu> foote@p.cs.uiuc.edu writes: >I've got the same problem with twm X11R3 under SunOS 4.0 on a Sun 3/50... Since I'm the one who asked the original question, I guess I should now post the results of my posting. This one says it all (though about 10 people sent me the information... thanks guys!) nomad )From: davep@apple.com )Subject: Re: twm on Sun 4 under SunOS4.0 )Date: Wed, 07 Dec 88 11:12:53 -0800 ) )Try this patch, which I've previously posted. Note that your twm )version number may be 1.2 instead of 4.0 or 5.0, since it uses )the RCS version number and was checked in at MIT as 1.1, then 1.2. ) )It's a problem with grabbing keys. It's still a )problem in twm 5.0 (which is included on the R3 tape). ) )In twm 4.0, Tom added the ability to bind functions to keys on the )keyboard. The .twmrc file you're using probably references a key for )which your server does not have a keycode. In the .twmrc file, you )specify a key string name; this gets converted into a keysym, of )which there are many, and gives an error if the keysym doesn't exist. )The keysym then gets converted to an actual keycode, of which a much )smaller number generally exist. There is no error checking here; )if there is no corresponding keycode, a 0 is returned. This value is )passed as the keycode to XGrabKey, but 0 means AnyKey to XGrabKey, so )it grabs all keys. ) )Here's a patch for this problem. The line numbers match twm 5.0, but )it succeeds in patching twm 4.0 also. ) (Since the patch was already posted, I have deleted it from here. If someone wants it send me e-mail and I'll ship it to you.) )- - -- )Dave Payne Apple Computer, A/UX Engineering Group )davep@apple.com (408) 974-5545 nomad --------------------- Lee Damon UUCP: verdix!------- UUCP: verdix!nomad \ \ Internet: nomad@verdix.com {tektronix,hp-pcd}!orstcs!castle!nomad FidoNet: 105/302 - The Castle BBS - 503-629-5841 / agora! "Say what you like, the bicycle has a great past ahead of it!"