From 3e7a2bd8c32a679dda793fce57f107203c48af55 Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 26 Mar 2010 15:02:14 +0000 Subject: Refactor OS X foreground process setting into a separate function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30964 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_quartz.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'libvo/vo_quartz.c') diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index 46c78b0583..ba4c5230c4 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -1088,27 +1088,7 @@ static int preinit(const char *arg) } } -#if !defined (CONFIG_MACOSX_FINDER) || !defined (CONFIG_SDL) - // this chunk of code is heavily based off SDL_macosx.m from SDL - // the CPSEnableForegroundOperation that was here before is private and shouldn't be used - // replaced by a call to the 10.3+ TransformProcessType - { - ProcessSerialNumber myProc, frProc; - Boolean sameProc; - - if (GetFrontProcess(&frProc) == noErr) - { - if (GetCurrentProcess(&myProc) == noErr) - { - if (SameProcess(&frProc, &myProc, &sameProc) == noErr && !sameProc) - { - TransformProcessType(&myProc, kProcessTransformToForegroundApplication); - } - SetFrontProcess(&myProc); - } - } - } -#endif + osx_foreground_hack(); return 0; } -- cgit v1.2.3