X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6258f9d978f9794820ad0a051994d8aad7c5c477..afc605b2bebec2f890e84fcc6f6da5ca4e425806:/src/mac/carbon/app.cpp diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index cbb3c6f22b..524f623b83 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -766,6 +766,8 @@ extern "C" void macPostedEventCallback(void *WXUNUSED(unused)) wxTheApp->ProcessPendingEvents(); } +ProcessSerialNumber gAppProcess ; + bool wxApp::Initialize(int& argc, wxChar **argv) { // Mac-specific @@ -796,6 +798,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv) if ( !wxAppBase::Initialize(argc, argv) ) return false; + GetCurrentProcess(&gAppProcess); + #if wxUSE_INTL wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); #endif