From 4a851701e9d99911615fbfdbdd302cd175fdb233 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Aug 2019 15:09:04 +0530 Subject: [PATCH] Fix a regression that broke setting background_opacity via remote control Fixes #1895 --- docs/changelog.rst | 3 +++ kitty/cmds.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 5cb1ac826..f16048735 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,9 @@ To update |kitty|, :doc:`follow the instructions `. "so-called" monospace fonts such as Nimbus Mono that have non-programming ligatures. +- Fix a regression that broke setting background_opacity via remote control + (:iss:`1895`) + 0.14.3 [2019-07-29] --------------------- diff --git a/kitty/cmds.py b/kitty/cmds.py index 095c47a0c..68235ccf5 100644 --- a/kitty/cmds.py +++ b/kitty/cmds.py @@ -999,7 +999,7 @@ def cmd_set_background_opacity(global_opts, opts, args): def set_background_opacity(boss, window, payload): 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') - 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}: boss._set_os_window_background_opacity(os_window_id, payload['opacity']) # }}}