OSX fix to bring launched apps to the front.

Fixes: lp:1154859
* https://bugs.launchpad.net/kicad/+bug/1154859
This commit is contained in:
Jeff Young 2018-11-13 17:11:20 +00:00
parent 361b768aaf
commit 8725511c3c
1 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,11 @@
#include "pgm_kicad.h"
#include "tree_project_frame.h"
#ifdef __WXMAC__
#include <MacTypes.h>
#include <ApplicationServices/ApplicationServices.h>
#endif
#include "kicad.h"
@ -273,6 +278,11 @@ void KICAD_MANAGER_FRAME::Execute( wxWindow* frame, const wxString& execFile,
GetChars( execFile ), GetChars( params ), pid );
PrintMsg( msg );
#ifdef __WXMAC__
msg.Printf( "osascript -e 'activate application \"%s\"' ", execFile );
system( msg.c_str() );
#endif
}
else
{