diff --git a/docs/changelog.rst b/docs/changelog.rst index 34f739eec..b6f47f238 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -17,6 +17,10 @@ To update |kitty|, :doc:`follow the instructions `. - Allow passing the current selection to kittens (:iss:`2796`) +- Allow setting the :opt:`background_opacity` of new OS windows created via + :option:`kitty --single-instance` using the :option:`kitty --override` command line + argument (:iss:`2806`) + 0.18.1 [2020-06-23] -------------------- diff --git a/kitty/boss.py b/kitty/boss.py index c52383199..43b3befaf 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -382,6 +382,8 @@ def peer_message_received(self, msg_bytes: bytes) -> Optional[bytes]: args.directory = os.path.join(data['cwd'], args.directory) for session in create_sessions(opts, args, respect_cwd=True): os_window_id = self.add_os_window(session, wclass=args.cls, wname=args.name, opts_for_size=opts, startup_id=startup_id) + if opts.background_opacity < 1: + self._set_os_window_background_opacity(os_window_id, opts.background_opacity) if data.get('notify_on_os_window_death'): self.os_window_death_actions[os_window_id] = partial(self.notify_on_os_window_death, data['notify_on_os_window_death']) else: