macos: restore 0 blur-radius when reloading config

This commit is contained in:
Caleb Norton
2024-12-29 16:25:30 -06:00
parent 5293fc9c2f
commit 479e735e7f

View File

@ -1891,9 +1891,6 @@ pub const CAPI = struct {
// Do nothing if we don't have background transparency enabled // Do nothing if we don't have background transparency enabled
if (config.@"background-opacity" >= 1.0) return; if (config.@"background-opacity" >= 1.0) return;
// Do nothing if our blur value is zero
if (config.@"background-blur-radius" == 0) return;
const nswindow = objc.Object.fromId(window); const nswindow = objc.Object.fromId(window);
_ = CGSSetWindowBackgroundBlurRadius( _ = CGSSetWindowBackgroundBlurRadius(
CGSDefaultConnectionForThread(), CGSDefaultConnectionForThread(),