Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Xt and applications that do non-window-related processing Message-ID: <2696@daisy.UUCP> Date: 16 Feb 89 18:49:29 GMT References: <626@arisia.Xerox.COM> Reply-To: klee@daisy.UUCP (Ken Lee) Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 15 In article <626@arisia.Xerox.COM> jlevy.pa@xerox.com (Jacob Levy) writes: >Suppose I wanted to write an application that sat in an infinite >loop and only every so often checked for input from X. It is >simple to do this with Xlib, but seems a lot hairier with Xt. XtAppMainLoop is just an infinite loop calling XtAppNextEvent() and XtDispatchEvent(). If you want, you can do anything else and call these 2 routines when you feel like it. If you're expecting both widget and non-widget events, you can add the non-widget events to the dispatch table or process them separately with your own dispatch routine. Ken Lee -- klee@daisy.uucp Daisy Systems Corp., Interactive Graphics Tools Dept.