[vlc-commits] macosx: reset window level when closing the vout
Felix Paul Kühne
git at videolan.org
Sat Jan 21 00:13:35 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 20 04:58:11 2012 -0800| [07c007cc2439e99b8d72fa8c94601f7c5fc92da2] | committer: Felix Paul Kühne
macosx: reset window level when closing the vout
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07c007cc2439e99b8d72fa8c94601f7c5fc92da2
---
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 a7c4ab3..6c0d241 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