We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c1e2b commit 92baee2Copy full SHA for 92baee2
kitty/rc/set_background_opacity.py
@@ -73,7 +73,7 @@ def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: Pa
73
# GLFW represents opacity as a float internally, but python's
74
# "float" type has double precision, so we can't rely on precise
75
# equality here
76
- if abs(current - val) <= 0.0001:
+ if current is not None and abs(current - val) <= 0.0001:
77
val = opts.background_opacity
78
boss._set_os_window_background_opacity(os_window_id, val)
79
return None
0 commit comments