Commit 9b730a3e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: In detached mode don't fade out all screens when switching to...

macosx: In detached mode don't fade out all screens when switching to fullscreen with multiple displays.
parent 2fd3b80e
......@@ -1114,18 +1114,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
screen = [NSScreen screenWithDisplayID: (CGDirectDisplayID)i_device];
if( !screen ) screen = [self screen];
if( b_black && [[NSScreen screens] count] > 1)
{
CGDisplayFadeReservationToken token;
CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
CGDisplayFade( token, 0.2 , kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
if( b_black )
[screen blackoutOtherScreens];
CGDisplayFade( token, 0.1 , kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0, 0, 0, NO );
CGReleaseDisplayFadeReservation( token);
}
[self setMovableByWindowBackground: NO];
if( [screen isMainScreen] )
......
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