From 92baee2f5965d586c94ce3bd323416b721271b2d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 22 Sep 2025 12:03:50 +0530 Subject: [PATCH] ... --- kitty/rc/set_background_opacity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/rc/set_background_opacity.py b/kitty/rc/set_background_opacity.py index ab44acf0b..6b145fab0 100644 --- a/kitty/rc/set_background_opacity.py +++ b/kitty/rc/set_background_opacity.py @@ -73,7 +73,7 @@ def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: Pa # GLFW represents opacity as a float internally, but python's # "float" type has double precision, so we can't rely on precise # equality here - if abs(current - val) <= 0.0001: + if current is not None and abs(current - val) <= 0.0001: val = opts.background_opacity boss._set_os_window_background_opacity(os_window_id, val) return None