From 56f54580dcec600eb69420a0e2a9132fb87331fd Mon Sep 17 00:00:00 2001 From: "conrad%ingress.com" Date: Mon, 26 Jun 2000 02:18:32 +0000 Subject: [PATCH] * Not part of build * Moved calls to Repeater to ProcessEvent(). This used to be done in the SpendTime() method of each CBrowserShell which was wrong. --- .../browser/powerplant/source/CBrowserApp.cp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/embedding/browser/powerplant/source/CBrowserApp.cp b/embedding/browser/powerplant/source/CBrowserApp.cp index da93cf569283..2b1351d47d6a 100644 --- a/embedding/browser/powerplant/source/CBrowserApp.cp +++ b/embedding/browser/powerplant/source/CBrowserApp.cp @@ -48,6 +48,7 @@ #include "nsIServiceManager.h" #include "nsIEventQueueService.h" #include "nsIPref.h" +#include "nsRepeater.h" #include "macstdlibextras.h" #include "SIOUX.h" @@ -280,26 +281,27 @@ CBrowserApp::ProcessNextEvent() Boolean gotEvent = ::WaitNextEvent(everyEvent, &macEvent, mSleepTime, mMouseRgn); -#if DEBUG - // NOTE: SIOUX doesn't get any nullEvents because it rudely sets the - // cursor on nullEvents - even if the mouse is not over its window - if (gotEvent && SIOUXHandleOneEvent(&macEvent)) - return; -#endif - // Let Attachments process the event. Continue with normal // event dispatching unless suppressed by an Attachment. if (LAttachable::ExecuteAttachments(msg_Event, &macEvent)) { if (gotEvent) { +#if DEBUG + if (!SIOUXHandleOneEvent(&macEvent)) +#endif DispatchEvent(macEvent); } else { UseIdleTime(macEvent); + + Repeater::DoIdlers(macEvent); + // yield to other threads + ::PR_Sleep(PR_INTERVAL_NO_WAIT); } } // Repeaters get time after every event LPeriodical::DevoteTimeToRepeaters(macEvent); + Repeater::DoRepeaters(macEvent); // Update status of menu items if (IsOnDuty() && GetUpdateCommandStatus()) {