From 9b730a3ef2d1f8967f292567453589fa164bd0af Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 23 Jul 2008 19:45:53 +0200 Subject: [PATCH] macosx: In detached mode don't fade out all screens when switching to fullscreen with multiple displays. --- modules/gui/macosx/vout.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 1f70b786c1..6c8cfffcc8 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -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] ) -- 2.39.2