Merge branch 'fix-set-background-opacity' of https://github.com/kdarkhan/kitty
This commit is contained in:
commit
bc715d4348
@ -72,6 +72,9 @@ Changelog
|
|||||||
- Fix :opt:`mouse_hide_wait` only taking effect after an event such as cursor
|
- Fix :opt:`mouse_hide_wait` only taking effect after an event such as cursor
|
||||||
blink or key press (:iss:`1073`)
|
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
|
- Fix second cell of emoji created using variation selectors not having
|
||||||
the same attributes as the first cell (:iss:`1109`)
|
the same attributes as the first cell (:iss:`1109`)
|
||||||
|
|
||||||
|
|||||||
@ -459,10 +459,10 @@ class Boss:
|
|||||||
_('You must set the dynamic_background_opacity option in kitty.conf to be able to change background opacity'))
|
_('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
|
os_window_id = window.os_window_id
|
||||||
if opacity[0] in '+-':
|
if opacity[0] in '+-':
|
||||||
opacity = background_opacity_of(os_window_id)
|
old_opacity = background_opacity_of(os_window_id)
|
||||||
if opacity is None:
|
if old_opacity is None:
|
||||||
return
|
return
|
||||||
opacity += float(opacity)
|
opacity = old_opacity + float(opacity)
|
||||||
elif opacity == 'default':
|
elif opacity == 'default':
|
||||||
opacity = self.opts.background_opacity
|
opacity = self.opts.background_opacity
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user