[comp.windows.x] twm Doesn't Map Keyboard Input Correctly

simpson@saturn.ind.trw.com (Scott Simpson) (03/01/90)

I recently switch from uwm to twm and an old problem I noticed in twm
still exists.  When my machine gets somewhat loaded and I move the cursor
to a new window and start typing, twm doesn't always catch up and the input
goes to the other window.  This never happened with uwm and is the main
reason I used to use it.  Is there any way to tell twm to check the times
of pointer and keyboard events so it knows which window keyboard input
is supposed to go to, regardless of whether it has caught up yet?
Scott Simpson    TRW Information Networks Division    simpson@trwind.trw.com

envbvs@epb2.lbl.gov (Brian V. Smith) (03/01/90)

In article <2928@trwind.UUCP>, simpson@saturn.ind.trw.com (Scott
Simpson) writes:
> I recently switch from uwm to twm and an old problem I noticed in twm
> still exists.  When my machine gets somewhat loaded and I move the cursor
> to a new window and start typing, twm doesn't always catch up and the input
> goes to the other window.  This never happened with uwm and is the main
> reason I used to use it.  Is there any way to tell twm to check the times
> of pointer and keyboard events so it knows which window keyboard input
> is supposed to go to, regardless of whether it has caught up yet?
> Scott Simpson    TRW Information Networks Division    simpson@trwind.trw.com

You have to set "NoTitleFocus" in your .twmrc file.
There is apparently a race condition if you allow keyboard focus in the 
title bar.  This will prevent the problem you are having.

_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (03/01/90)

    When my machine gets somewhat loaded and I move the cursor
    to a new window and start typing, twm doesn't always catch up and the input
    goes to the other window.

Put "NoTitleFocus" in your .twmrc (see sample-twmrc/jim.twmrc) to disable
autotracking.  This means that typing in the title bar won't necessarily
work "right", but you won't see the annoying lag.