Reset OS window class and name for new single instance OS windows

This commit is contained in:
Kovid Goyal 2025-04-23 22:18:42 +05:30
parent 87b218a40d
commit c194dbc9ef
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 0 deletions

View file

@ -131,6 +131,8 @@ Detailed list of changes
- Single instance: Preserve environment variables from invoking environment in
newly created window (:disc:`8567`)
- Single instance: Reset OS Window class and name in new single instance OS
windows (:disc:`8567`)
0.41.1 [2025-04-03]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -273,6 +273,9 @@ def create_sessions(
current_layout = opts.enabled_layouts[0] if opts.enabled_layouts else 'tall'
ans.add_tab(opts)
ans.tabs[-1].layout = current_layout
if args is not None:
ans.os_window_class = args.cls
ans.os_window_name = args.name
if special_window is None:
cmd = args.args if args and args.args else resolved_shell(opts)
from kitty.tabs import SpecialWindow