X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc96f525259a67031d16254d4fed87087ccfb6a8..3721dc6efe6f9ffe550c4c83bee2da210043bcaa:/src/osx/cocoa/utils.mm diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 59420be784..fb325bd19c 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -210,8 +210,12 @@ bool wxApp::DoInitGui() NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager]; [appleEventManager setEventHandler:controller andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; - + + // calling finishLaunching so early before running the loop seems to trigger some 'MenuManager compatibility' which leads + // to the duplication of menus under 10.5 and a warning under 10.6 +#if 0 [NSApp finishLaunching]; +#endif } return true; } @@ -222,7 +226,7 @@ void wxApp::DoCleanUp() void wxClientDisplayRect(int *x, int *y, int *width, int *height) { - NSRect displayRect = [[NSScreen mainScreen] visibleFrame]; + NSRect displayRect = [wxOSXGetMenuScreen() visibleFrame]; wxRect r = wxFromNSRect( NULL, displayRect ); if ( x ) *x = r.x;