[comp.windows.x] Question about XtAddInput

gjf00@duts.ccc.amdahl.com (Gordon Freedman) (10/11/90)

I am running Motif (from Quest windows) with X11-R4.0 on a Solbourne 4-500
(essentially a Sparc system) running Sunos. I'm having a problem with
XtAddInput. I'm using XtAddInput as described in "X Toolkit Intrinsics
Programming Manual (Volume 4)" (O'Reilly and Assoc) section 8.3 (File,
Pipe, and Socket Input). 

The problem I am having is that my input handler does not get called unless
other ("normal") X events are also available. A footnote on page 224 says
this behavior is a bug in R3, but is *not* a bug in R4. I am compiling with
a make file using the following:

CC=cc
CFLAGS=-I/usr/include/Xm  -I../include -g
LIBS=-lXm -lXtm -lX11

My LD_LIBRARY_PATH is set to:

LD_LIBRARY_PATH = "/usr/bin/motif/lib/X11/lib4:/usr/bin/motif/lib/X11/lib:/usr/b
in/motif/lib/X11/lib3"

(/usr/bin/motif/ is the root of all the Motif stuff, /usr/include/Xm is a link
to /usr/bin/motif/include/X11/motif/Xm). 

Other than the problem I am seeing everything works as advertised with 
XtAddInput. If anybody has any ideas as to how to fix this or what the problem
might be, please email me at gjf00@duts.ccc.amdahl.com

Thanks in advance,
--
Gordon Freedman: gjf00@duts.ccc.amdahl.com
Disclaimer: My opinions! Not my employers!

aps@tut.fi (Suntioinen Ari) (10/17/90)

In article <beFQ02MO025N01@JUTS.ccc.amdahl.com> gjf00@duts.ccc.amdahl.com (Gordon Freedman) writes:

=> other ("normal") X events are also available. A footnote on page 224 says
=> this behavior is a bug in R3, but is *not* a bug in R4. 

Maybe they documented it in R4 so it's a feature now ? :)

--
    Ari Suntioinen -- aps@tut.fi         "Here comes another one.
    Opiskelijankatu 4 C 162               Here it comes again."
    33720 Tampere,  Finland

lcp@ibism.UUCP (Larry Poleshuck) (10/23/90)

In article <beFQ02MO025N01@JUTS.ccc.amdahl.com>, gjf00@duts.ccc.amdahl.com (Gordon Freedman) writes:
> 
> I am running Motif (from Quest windows) with X11-R4.0 on a Solbourne 4-500
> (essentially a Sparc system) running Sunos. I'm having a problem with
> XtAddInput. I'm using XtAddInput as described in "X Toolkit Intrinsics
> Programming Manual (Volume 4)" (O'Reilly and Assoc) section 8.3 (File,
> Pipe, and Socket Input). 
> 
> The problem I am having is that my input handler does not get called unless
> other ("normal") X events are also available. A footnote on page 224 says
> this behavior is a bug in R3, but is *not* a bug in R4. I am compiling with
> a make file using the following:
> 
 ...

> --
> Gordon Freedman: gjf00@duts.ccc.amdahl.com
> Disclaimer: My opinions! Not my employers!

I use an XtAddInput (with the read mask only) in a TeleUSE MOTIF application.
I have no problem getting my input routine executed even though there are
no X events in the queue.  This is X11R3 with the appropriate patches for
Motif 1.0.3 as supplied by TeleSoft.

Larry Poleshuck
Citibank
111 Wall Street
New York, NY  10043

Phone:  212-657-7709
Fax:    212-657-0068
E-Mail: uunet!ibism!lcp