[comp.windows.x] Novice twm question

eric@eddie.MIT.EDU (Eric Van Tassell) (06/16/89)

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-- 
Eric Van Tassell(dlcdev!eric@eddie.mit.edu)
Progress Software Corp.
22B Cotton Rd.
Nashua, NH 03063 {603-882-2488}

toml@Solbourne.COM (Tom LaStrange) (06/17/89)

> 
> 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 */

mvh@cfa250.harvard.edu (Mike Van Hilst) (06/28/89)

A few weeks ago, there were a couple postings about not getting
keyboard entry in windows under TWM with XV11R3 on Sun's.  Tom
LaStrange posted a patch for the "infamous no-typing-into-windows
bug".  I too have this problem.  Since upgrading to R3 from R2
I have been unable to use TWM.  I tried the posted patch (106??),
but it makes no difference.

The menus and window focus indications seem to work fine.  When
I type, the text cursor flashes but does not advance and no
characters appear.  Typing simple commands gets no response.
I am using a Sun 3/60 w/ CG4 and have tried both CC and GCC for
server (with and without Purdue speedups) and TWM.

Our internet connection was down for a few days, so forgive me
if the solution has already been posted.

Mike