[MPlayer-dev-eng] [PATCH] Fix for vo macosx play window not actived bug on leopard

Ulion ulion2002 at gmail.com
Sat Nov 3 16:41:00 CET 2007


2007/11/3, Ulion <ulion2002 at gmail.com>:
> Hello,
>
> On Leopard (Mac OS 10.5), vo macosx fail to active the play window
> after started, on Mac OS 10.4 there's no problem. After test, I found
> the fail reason is the call makeKeyAndOrderFront failed, probably
> because on Leopard window can only be actived after NSApp actived, and
> NSApp actived which need some event stuff work. Since we handle NSApp
> events in check_events call, if we call makeKeyAndOrderFront once
> after NSApp actived, will fix the bug. Here's the patch.

I found after application switched, the play window is not actived
either, so here's the updated patch for it, also detect the running
os' version to decide whether do special fix.

-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_macosx_active_leopard_fix2.diff
Type: text/x-diff
Size: 1021 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071103/0f3ba3a7/attachment.diff>


More information about the MPlayer-dev-eng mailing list