[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:49 CEST 2012


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

macosx: make sure that VLC always shows a visibible video window when spawning a new vout (close #6418)
(cherry picked from commit 8b06a658de60f18809b4282baa6f216333456495)

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

 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 fbf6e0b..d4e52fa 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