Skip to content

Commit 92baee2

Browse files
committed
...
1 parent f8c1e2b commit 92baee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitty/rc/set_background_opacity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: Pa
7373
# GLFW represents opacity as a float internally, but python's
7474
# "float" type has double precision, so we can't rely on precise
7575
# equality here
76-
if abs(current - val) <= 0.0001:
76+
if current is not None and abs(current - val) <= 0.0001:
7777
val = opts.background_opacity
7878
boss._set_os_window_background_opacity(os_window_id, val)
7979
return None

0 commit comments

Comments
 (0)