From 76a1a59d320f3b48c86fe82c6d47c6bfa232196b Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Fri, 29 Nov 2013 11:56:02 +0100 Subject: wx: Fix initialization The first window didn't get activated when using old method and new wxWidgets-3.0.1. --- lib/wx/c_src/wxe_ps_init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/wx/c_src') diff --git a/lib/wx/c_src/wxe_ps_init.c b/lib/wx/c_src/wxe_ps_init.c index 6ec702d18f..d000e242de 100644 --- a/lib/wx/c_src/wxe_ps_init.c +++ b/lib/wx/c_src/wxe_ps_init.c @@ -34,7 +34,12 @@ void * wxe_ps_init() // Enable GUI if(!GetCurrentProcess(&psn)) { TransformProcessType(&psn, kProcessTransformToForegroundApplication); +#ifdef MAC_OS_X_VERSION_10_6 + [[NSRunningApplication currentApplication] activateWithOptions: + (NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)]; +#else SetFrontProcess(&psn); +#endif } return (void *) 0; } -- cgit v1.2.3