diff --git a/docs/changelog.rst b/docs/changelog.rst index 75d269b35..9e78976f8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -72,6 +72,9 @@ Changelog - Fix :opt:`mouse_hide_wait` only taking effect after an event such as cursor blink or key press (:iss:`1073`) +- Fix the ``set_background_opacity`` action not working correctly + (:pull:`1147`) + - Fix second cell of emoji created using variation selectors not having the same attributes as the first cell (:iss:`1109`) diff --git a/kitty/boss.py b/kitty/boss.py index 50265d446..068fbc87e 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -459,10 +459,10 @@ class Boss: _('You must set the dynamic_background_opacity option in kitty.conf to be able to change background opacity')) os_window_id = window.os_window_id if opacity[0] in '+-': - opacity = background_opacity_of(os_window_id) - if opacity is None: + old_opacity = background_opacity_of(os_window_id) + if old_opacity is None: return - opacity += float(opacity) + opacity = old_opacity + float(opacity) elif opacity == 'default': opacity = self.opts.background_opacity else: