mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Reset OS window class and name for new single instance OS windows
This commit is contained in:
@@ -131,6 +131,8 @@ Detailed list of changes
|
|||||||
- Single instance: Preserve environment variables from invoking environment in
|
- Single instance: Preserve environment variables from invoking environment in
|
||||||
newly created window (:disc:`8567`)
|
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]
|
0.41.1 [2025-04-03]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -273,6 +273,9 @@ def create_sessions(
|
|||||||
current_layout = opts.enabled_layouts[0] if opts.enabled_layouts else 'tall'
|
current_layout = opts.enabled_layouts[0] if opts.enabled_layouts else 'tall'
|
||||||
ans.add_tab(opts)
|
ans.add_tab(opts)
|
||||||
ans.tabs[-1].layout = current_layout
|
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:
|
if special_window is None:
|
||||||
cmd = args.args if args and args.args else resolved_shell(opts)
|
cmd = args.args if args and args.args else resolved_shell(opts)
|
||||||
from kitty.tabs import SpecialWindow
|
from kitty.tabs import SpecialWindow
|
||||||
|
|||||||
Reference in New Issue
Block a user