git-svn-id: svn://10.0.0.236/trunk@99513 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2001-07-18 20:56:48 +00:00
parent 961036bba9
commit 63e952a9ad

View File

@@ -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);