From a0977b5b74f7cc5c9bbc3966388a3034a9cfc01f Mon Sep 17 00:00:00 2001 From: kmcclusk Date: Thu, 11 Jun 1998 19:29:57 +0000 Subject: [PATCH] Added support for nsDispatchListener's under Motif. --- widget/src/motif/nsAppShell.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/widget/src/motif/nsAppShell.cpp b/widget/src/motif/nsAppShell.cpp index 934cccd2b9d8..a6f7b0878c47 100644 --- a/widget/src/motif/nsAppShell.cpp +++ b/widget/src/motif/nsAppShell.cpp @@ -55,7 +55,15 @@ void nsAppShell::Create(int* argc, char ** argv) nsresult nsAppShell::Run() { XtRealizeWidget(mTopLevel); - XtAppMainLoop(mAppContext); + +// XtAppMainLoop(mAppContext); + XEvent event; + for (;;) { + XtAppNextEvent(mAppContext, &event); + XtDispatchEvent(&event); + if (mDispatchListener) + mDispatchListener->AfterDispatch(); + } return NS_OK; }