[vlc-commits] macosx: reset window level when closing the vout

Felix Paul Kühne git at videolan.org
Sat Jan 21 22:20:59 CET 2012


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 20 04:58:11 2012 -0800| [55b9bec48731ba754e7c4467d44871bcc3f14874] | committer: Jean-Baptiste Kempf

macosx: reset window level when closing the vout
(cherry picked from commit 07c007cc2439e99b8d72fa8c94601f7c5fc92da2)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=55b9bec48731ba754e7c4467d44871bcc3f14874
---

 modules/video_output/macosx.m |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 4170388..a68c82d 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -249,6 +249,9 @@ void Close(vlc_object_t *this)
     vout_display_t *vd = (vout_display_t *)this;
     vout_display_sys_t *sys = vd->sys;
 
+    if ([[sys->glView window] level] != NSNormalWindowLevel)
+        [[sys->glView window] setLevel: NSNormalWindowLevel];
+
     [sys->glView setVoutDisplay:nil];
 
     var_Destroy(vd, "drawable-nsobject");



More information about the vlc-commits mailing list