@@ -367,6 +367,8 @@ - (BOOL)presentWindow:(id)unused
367367 // GUIEnter auto command could cause this).
368368 [fullScreenWindow enterFullScreen ];
369369 fullScreenEnabled = YES ;
370+ if (blurRadius != 0 )
371+ [MMWindow setBlurRadius: blurRadius onWindow: fullScreenWindow];
370372 shouldResizeVimView = YES ;
371373 } else if (delayEnterFullScreen) {
372374 [self enterNativeFullScreen ];
@@ -1017,6 +1019,9 @@ - (void)setBlurRadius:(int)radius
10171019 blurRadius = radius;
10181020 if (windowPresented) {
10191021 [decoratedWindow setBlurRadius: radius];
1022+ if (fullScreenWindow) {
1023+ [MMWindow setBlurRadius: radius onWindow: fullScreenWindow];
1024+ }
10201025 }
10211026}
10221027
@@ -1045,8 +1050,9 @@ - (void)enterFullScreen:(int)fuoptions backgroundColor:(NSColor *)back
10451050
10461051 NSColor *fullscreenBg = back;
10471052
1048- // See setDefaultColorsBackground: for why set a transparent
1049- // background color, and why 0.001 instead of 0.
1053+ // Copy option: 'transparency'
1054+ // See setDefaultColorsBackground: for why set a transparent
1055+ // background color, and why 0.001 instead of 0.
10501056 if ([fullscreenBg alphaComponent ] != 1 ) {
10511057 fullscreenBg = [fullscreenBg colorWithAlphaComponent: 0.001 ];
10521058 }
@@ -1069,6 +1075,13 @@ - (void)enterFullScreen:(int)fuoptions backgroundColor:(NSColor *)back
10691075 [fullScreenWindow enterFullScreen ];
10701076 fullScreenEnabled = YES ;
10711077
1078+ // Copy option: 'blurradius'
1079+ // Do this here instead of in full screen window since this
1080+ // involves calling private APIs and we want to limit where we
1081+ // do that.
1082+ if (blurRadius != 0 )
1083+ [MMWindow setBlurRadius: blurRadius onWindow: fullScreenWindow];
1084+
10721085 // The resize handle disappears so the vim view needs to update the
10731086 // scrollbars.
10741087 shouldResizeVimView = YES ;
0 commit comments