[comp.windows.x.openlook] Focus problem

bjs@RUTS.ccc.amdahl.com (Barry Sherman) (03/13/91)

I have what seems to be a strange situation.  When running
on a Sun Sparkstation with the Openwindows server and Motif 1.0
window manager there are anomalies with keyboard focus.

Basically what happens is that I have Mwm*keyboardFocusPolicy set to 
"pointer".  Then, at seemingly random intervals, one of two problems
occurs.  

1.  The first and least important problem is that I move the pointer 
    from window A to window B, where either may be "xterm" or a 
    self-written motif-library-using program.  The window decoration 
    of window B changes to that specified by "activeForeground" but 
    keystrokes continue to be directed to window A.  This continues 
    for a little while (a few seconds) and then keystrokes commence to 
    be directed to window B.  

2.  The second and more important problem is that I move the
    pointer out of a window (say, an xterm), the cursor changes shape 
    as appropriate for the widgets which it traverses after leaving the
    xterm window, but the original window retain the focus.  All events
    continue to go to it.  It's decoration background color does not 
    change from "activeBackground" to "background".  It's as if the 
    pointer was never moved.

These effects seems to occur more frequently when the machine
is heavily loaded and response time is longish.  

Has anyone else had similar experiences?  Any suggestions as to
cause?  Cure?

Thanks in advance for any help.

--
Barry Sherman                 Amdahl Corp. 
bjs@ruts.ccc.amdahl.com       The opinions expressed are mine, all mine!