Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!shearson.com!newshost!malbert From: malbert@jeeves.shearson.com (Marc Albert) Newsgroups: comp.windows.x Subject: Event Loops Message-ID: Date: 15 Apr 91 14:55:20 GMT Sender: news@shearson.com (News) Distribution: comp.windows.x Organization: Lehman Brothers Lines: 26 |> I have an application that has multiple top level windows. The event |> loop looks something like this: |> for (;;) { |> if (XtAppPending(WindowOne)) |> XtDispatch(); |> if (XtAppPending(WindowTwo)) |> XtDispatch(); |> } |> |> This method works fine. >Are you sure this works? XtAppPending takes an application context, >not a window, as its argument. The application context can contain any >number of displays, with each display containing any number of >top-level windows. I'm sorry if my example was unclear. This was supposed to be just a sample of the logic - not actual code. You are correct, that application does use multiple application contexts. Marc. return address ...uunet!shearson.com!malbert MA Bell: (212) 464-3061