Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Xt Input Callbacks Message-ID: <1991May8.155639@wsl.dec.com> Date: 8 May 91 22:56:39 GMT References: <1991May8.184621.13022@motcad.portal.com> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 14 In article <1991May8.184621.13022@motcad.portal.com>, jtc@motcad.portal.com (J.T. Conklin) writes: |> Why do read callbacks installed with XtAddInput() get called when there is |> no input pending? Is there any way to stop this from happening? The callback is called when the fd is ready for reading, which is a little different from having input pending. A common error is trying to use XtAddInput on regular UNIX files, which are almost always "ready" for reading, although they may have no new input. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee