From 63e952a9adc8dc7f287a118a877d71b05433751f Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Wed, 18 Jul 2001 20:56:48 +0000 Subject: [PATCH] Update git-svn-id: svn://10.0.0.236/trunk@99513 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/java/webclient/src_moz/NativeEventThread.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mozilla/java/webclient/src_moz/NativeEventThread.cpp b/mozilla/java/webclient/src_moz/NativeEventThread.cpp index 27ff30bbe86..9fcfec27b65 100644 --- a/mozilla/java/webclient/src_moz/NativeEventThread.cpp +++ b/mozilla/java/webclient/src_moz/NativeEventThread.cpp @@ -401,13 +401,21 @@ int processEventLoop(WebShellInitContext * initContext) #else // PENDING(mark): Does this work on the Mac? MSG msg; + PRBool wasHandled; if (::PeekMessage(&msg, nsnull, 0, 0, PM_NOREMOVE)) { if (::GetMessage(&msg, nsnull, 0, 0)) { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); + printMsg(&msg, msgFile); + wasHandled = PR_FALSE; + ::NS_HandleEmbeddingEvent(msg, wasHandled); + if (!wasHandled) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } } } + // Do idle stuff + ::NS_DoIdleEmbeddingStuff(); #endif ::PR_Sleep(PR_INTERVAL_NO_WAIT);