Mercurial > mplayer.hg
diff libvo/vo_corevideo.m @ 30922:7e3b047c51e7
Refactor OS X foreground process setting into a separate function.
author | diego |
---|---|
date | Fri, 26 Mar 2010 15:02:14 +0000 |
parents | 444f843a54ec |
children | 886527159cae |
line wrap: on
line diff
--- a/libvo/vo_corevideo.m Fri Mar 26 12:12:25 2010 +0000 +++ b/libvo/vo_corevideo.m Fri Mar 26 15:02:14 2010 +0000 @@ -386,23 +386,7 @@ NSApp = [NSApplication sharedApplication]; isLeopardOrLater = floor(NSAppKitVersionNumber) > 824; - #if !defined (CONFIG_MACOSX_FINDER) || !defined (CONFIG_SDL) - //this chunk of code is heavily based off SDL_macosx.m from SDL - 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(); if(!mpGLView) {