Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blur background behind MAAttachedWindow?

Just curious if this is possible. Right now here is what a sample MAAttachedWindow looks like:

enter image description here

However, I want to know if I can blur the background behind the window, like this:

enter image description here

Is this possible without using private APIs?


Request for code. Well, here's how MAAttachedWindow works. You just feed it a custom NSView, and it does the rest. So, here's how I was trying to make the blur:

CALayer *backgroundLayer = [CALayer layer];
[view setLayer:backgroundLayer];
[view setWantsLayer:YES];
CIFilter *blurFilter = [CIFilter filterWithName:@"CIGaussianBlur"];
[blurFilter setDefaults];
[view layer].backgroundFilters = [NSArray arrayWithObject:blurFilter];
like image 924
sudo rm -rf Avatar asked May 05 '11 16:05

sudo rm -rf


People also ask

Why doesn't my zoom have the Blur Background option?

If you are unable to find the blurred background option, it is likely that your computer processor does not meet the system requirements due to it being from a generation that is not supported.


1 Answers

No. You can’t do this without using private APIs. (Is my message 30 characters long yet?)

like image 52
Jens Ayton Avatar answered Sep 29 '22 23:09

Jens Ayton