summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-29 23:02:34 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-29 23:02:34 +0100
commitfa1c0e32be95d6507ed2100fffcb3230269a880e (patch)
tree2fbb85940996be0f3d4d8fe5546ba569d27f017a /src/tools
parentf1633689739cc77f81e14365c862b5832d19da76 (diff)
parent07ee845fddca9c7f4e714cf0df8f3e755af7ed81 (diff)
Merge branch 'osx'
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dvdomatic.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc
index ff1560f0e..e6d4471db 100644
--- a/src/tools/dvdomatic.cc
+++ b/src/tools/dvdomatic.cc
@@ -23,6 +23,9 @@
#ifdef __WXMSW__
#include <shellapi.h>
#endif
+#ifdef __WXOSX__
+#include <ApplicationServices/ApplicationServices.h>
+#endif
#include <wx/aboutdlg.h>
#include <wx/stdpaths.h>
#include <wx/cmdline.h>
@@ -472,6 +475,12 @@ class App : public wxApp
#ifdef DVDOMATIC_POSIX
unsetenv ("UBUNTU_MENUPROXY");
+#endif
+
+#ifdef __WXOSX__
+ ProcessSerialNumber serial;
+ GetCurrentProcess (&serial);
+ TransformProcessType (&serial, kProcessTransformToForegroundApplication);
#endif
wxInitAllImageHandlers ();