Commit 3500b9bf authored by Felix Paul Kühne's avatar Felix Paul Kühne

Mac Plugin: make sure layers don't get lost when destroying the fullscreen window

parent e60739a1
......@@ -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];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment