mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Fix a regression that broke setting background_opacity via remote control
Fixes #1895
This commit is contained in:
@@ -26,6 +26,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
"so-called" monospace fonts such as Nimbus Mono that have non-programming
|
"so-called" monospace fonts such as Nimbus Mono that have non-programming
|
||||||
ligatures.
|
ligatures.
|
||||||
|
|
||||||
|
- Fix a regression that broke setting background_opacity via remote control
|
||||||
|
(:iss:`1895`)
|
||||||
|
|
||||||
|
|
||||||
0.14.3 [2019-07-29]
|
0.14.3 [2019-07-29]
|
||||||
---------------------
|
---------------------
|
||||||
|
|||||||
@@ -999,7 +999,7 @@ def cmd_set_background_opacity(global_opts, opts, args):
|
|||||||
def set_background_opacity(boss, window, payload):
|
def set_background_opacity(boss, window, payload):
|
||||||
if not boss.opts.dynamic_background_opacity:
|
if not boss.opts.dynamic_background_opacity:
|
||||||
raise OpacityError('You must turn on the dynamic_background_opacity option in kitty.conf to be able to set background opacity')
|
raise OpacityError('You must turn on the dynamic_background_opacity option in kitty.conf to be able to set background opacity')
|
||||||
windows = windows_for_payload(payload)
|
windows = windows_for_payload(boss, window, payload)
|
||||||
for os_window_id in {w.os_window_id for w in windows}:
|
for os_window_id in {w.os_window_id for w in windows}:
|
||||||
boss._set_os_window_background_opacity(os_window_id, payload['opacity'])
|
boss._set_os_window_background_opacity(os_window_id, payload['opacity'])
|
||||||
# }}}
|
# }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user