diff options
author | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-04-26 19:07:55 +0300 |
---|---|---|
committer | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-04-26 19:07:55 +0300 |
commit | 6a9d277e00d9c20a8f3359627864f731923baac3 (patch) | |
tree | e3a6ee9046bca45cc42e9cd82cb4713a99d8d3da /indra/llplugin/slplugin | |
parent | 24894a5f71b76aab407976ff9bf36bfc0f7ae70a (diff) | |
parent | fbfc85176670f3f948e6e2f00c8d8e37c96d5299 (diff) |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llplugin/slplugin')
-rw-r--r-- | indra/llplugin/slplugin/slplugin.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llplugin/slplugin/slplugin.cpp b/indra/llplugin/slplugin/slplugin.cpp index c18e2375f9..7d6dde1a58 100644 --- a/indra/llplugin/slplugin/slplugin.cpp +++ b/indra/llplugin/slplugin/slplugin.cpp @@ -255,6 +255,9 @@ int main(int argc, char **argv) } #endif +#if LL_DARWIN + EventTargetRef event_target = GetEventDispatcherTarget(); +#endif while(!plugin->isDone()) { timer.reset(); @@ -262,8 +265,12 @@ int main(int argc, char **argv) #if LL_DARWIN { // Some plugins (webkit at least) will want an event loop. This qualifies. - EventRecord evt; - WaitNextEvent(0, &evt, 0, NULL); + EventRef event; + if(ReceiveNextEvent(0, 0, kEventDurationNoWait, true, &event) == noErr) + { + SendEventToEventTarget (event, event_target); + ReleaseEvent(event); + } // Check for a change in this process's frontmost window. if(FrontWindow() != front_window) |