Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!leah!bingvaxu!sunybcs!boulder!stan!toml From: toml@Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: Novice twm question(really basic) Message-ID: <1487@imelda.Solbourne.COM> Date: 16 Jun 89 18:42:54 GMT References: <12013@eddie.MIT.EDU> Organization: Solbourne Computer Inc., Longmont, Co. Lines: 49 > > I extracted the twm files from the contrib part of my X11R3 tapes and built it > with no problem. The bummer about it is that twm works fine except for the fact > that I cant type into any of my windows. What am ah doin wrong?TIA-- Ahhh, the infamous no-typing-into-windows bug, again. Here is the patch. -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,nbires,sun}!stan!toml Longmont, CO 80501 -------------------------------------------------------------- *** orig/menus.c Thu Apr 27 08:29:16 1989 --- menus.c Wed Jun 7 07:58:21 1989 *************** *** 137,147 **** { FuncKey *tmp; KeySym keysym; ! if ((keysym = XStringToKeysym(name)) == NoSymbol) { ! fprintf(stderr, "twm: unknown key name \"%s\"\n", name); ! return; } /* see if there already is a key defined for this context */ --- 137,153 ---- { FuncKey *tmp; KeySym keysym; + KeyCode keycode; ! /* ! * Don't let a 0 keycode go through, since that means AnyKey to the ! * XGrabKey call in GrabKeys(). ! */ ! if ((keysym = XStringToKeysym(name)) == NoSymbol || ! (keycode = XKeysymToKeycode(dpy, keysym)) == 0) { ! fprintf(stderr, "twm: unknown key name \"%s\"\n", name); ! return; } /* see if there already is a key defined for this context */