Re:An app for M1 Macs that plays the sound of a fan as CPU u...
by skavi on Monday July 19, 2021 @09:49AM
(#27882628)
The unique thing about this is that it takes a widget from the app, and expands it out while blurring the rest of the screen. So it’s not just an OS gui component.
[ Parent
| on HN ]
Re:An app for M1 Macs that plays the sound of a fan as CPU u...
by ajconway on Monday July 19, 2021 @04:17PM
(#27886821)
Blurring happens inside the UI server process. Here is a related technique in macOS: https://avaidyam.github.io/2018/02/17/CAPluginLayer_CABackdr...
Basically, it's like an iframe — you declare what contents this portion of screen should have, and the render server composes it onto the screen. The render server is shared between all apps (just like in X11), so it can compose different apps with dependent effects (like blur). Apps don't have direct access to the render server's context, just like a webpage doesn't have any way to extract data from a foreign iframe.