mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
* Not part of build *
This commit is contained in:
parent
b52c87855a
commit
56f54580dc
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user