[vlc-commits] macosx: make sure that VLC always shows a visibible video window when spawning a new vout (close #6418)

Felix Paul Kühne git at videolan.org
Sun Apr 1 20:14:23 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Apr  1 20:14:12 2012 +0200| [8b06a658de60f18809b4282baa6f216333456495] | committer: Felix Paul Kühne

macosx: make sure that VLC always shows a visibible video window when spawning a new vout (close #6418)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b06a658de60f18809b4282baa6f216333456495
---

 modules/gui/macosx/MainWindow.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 4f273eb..ee2ab17 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1400,9 +1400,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [o_detached_video_window setLevel:NSNormalWindowLevel];
         [o_detached_video_window useOptimizedDrawing: YES];
         [o_detached_video_window center];
-        [o_detached_video_window makeKeyAndOrderFront:self];
         b_nonembedded = YES;
     }
+    [[o_video_view window] makeKeyAndOrderFront: self];
 
     if (p_vout)
     {



More information about the vlc-commits mailing list