Merge branch 'fix-set-background-opacity' of https://github.com/kdarkhan/kitty

This commit is contained in:
Kovid Goyal 2018-11-17 16:01:33 +05:30
commit bc715d4348
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 3 deletions

View File

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

View File

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