This commit is contained in:
Kovid Goyal 2025-09-22 12:03:50 +05:30
parent f8c1e2b162
commit 92baee2f59
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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