Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ginsu.apple.COM!davep From: davep@ginsu.apple.COM Newsgroups: comp.windows.x Subject: Re: Better interactive performance Message-ID: <8901172222.AA03066@ginsu.aux.apple.com> Date: 17 Jan 89 22:22:15 GMT References: Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 18 > When running X, emacs & latex on my sun-3/60, I notice a bit of a delay > in setting the focus. In particular, I can move the cursor from my emacs > window to an xterm window, type a few characters & have them appear > in the emacs window. > > Presumably, this is because I use auto-focus, and both X and `twm' (the WM > I'm using) need to execute before the focus can change to my xterm window. Try setting the NoTitleFocus variable in your .twmrc file. If this variable is not set, twm explicitly calls XSetInputFocus so that when the pointer is in the title bar, keyboard input will be sent to the body window. When you move the pointer, the server sends EnterNotify and LeaveNotify events to twm, which calls XSetInputFocus to move the focus to the new window. Meanwhile, the server can asynchronously send characters to the window which first had focus. If NoTitleFocus is set, the server sends characters to whichever window the pointer is in when the character is received.