Respect --override of background_opacity for --single-instance

Fixes #2806
This commit is contained in:
Kovid Goyal 2020-06-27 09:18:41 +05:30
parent fd3a4536e7
commit cc15ff73b7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- 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]
--------------------

View File

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