]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/vout.m
macosx: In detached mode don't fade out all screens when switching to fullscreen...
[vlc] / modules / gui / macosx / vout.m
index 1f70b786c10aee14c267e17e9305302b789b1d26..6c8cfffcc85140ba64eaff71255dddc49108b774 100644 (file)
@@ -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] )