[vlc-commits] Mac Plugin: make sure layers don' t get lost when destroying the fullscreen window
Felix Paul Kühne
git at videolan.org
Wed Jan 29 23:29:18 CET 2014
npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jan 29 23:29:08 2014 +0100| [3500b9bfbc8eff098974e6621f85577b011d3dc2] | committer: Felix Paul Kühne
Mac Plugin: make sure layers don't get lost when destroying the fullscreen window
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=3500b9bfbc8eff098974e6621f85577b011d3dc2
---
npapi/vlcplugin_mac.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 76999db..b5b472b 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -174,7 +174,6 @@ void VlcPluginMac::toggle_fullscreen()
[[fullscreenWindow contentView] enterFullScreenMode: [NSScreen mainScreen] withOptions: [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt: 0], NSFullScreenModeAllScreens, nil]];
} else {
[[fullscreenWindow contentView] exitFullScreenModeWithOptions: nil];
- [fullscreenWindow orderOut: nil];
[noMediaLayer removeFromSuperlayer];
[playbackLayer removeFromSuperlayer];
[controllerLayer removeFromSuperlayer];
@@ -182,6 +181,7 @@ void VlcPluginMac::toggle_fullscreen()
[browserRootLayer addSublayer: noMediaLayer];
[browserRootLayer addSublayer: playbackLayer];
[browserRootLayer addSublayer: controllerLayer];
+ [fullscreenWindow orderOut: nil];
}
}
More information about the vlc-commits
mailing list