From ba539dee9a5e192e0bcfe1eb4609e314af85baae Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Fri, 19 Jan 2007 19:21:00 +0000 Subject: [PATCH] stop apps from hanging for a while on shutdown. allow automated testing tools to work again. b=343033 r=mento git-svn-id: svn://10.0.0.236/trunk@218677 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsAppShell.mm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mozilla/widget/src/cocoa/nsAppShell.mm b/mozilla/widget/src/cocoa/nsAppShell.mm index 334a0c9dafd..e3437640f49 100644 --- a/mozilla/widget/src/cocoa/nsAppShell.mm +++ b/mozilla/widget/src/cocoa/nsAppShell.mm @@ -196,6 +196,17 @@ nsAppShell::ProcessGeckoEvents() } NativeEventCallback(); + + [NSApp postEvent:[NSEvent otherEventWithType:NSApplicationDefined + location:NSMakePoint(0,0) + modifierFlags:0 + timestamp:0 + windowNumber:-1 + context:NULL + subtype:0 + data1:0 + data2:0] + atStart:NO]; } // WillTerminate