From 648bff02b56fa38eefbde10c123df0bb3800d0bb Mon Sep 17 00:00:00 2001 From: pagedown Date: Sun, 6 Feb 2022 18:58:52 +0800 Subject: [PATCH] Only remove the initial window if no startup session is configured --- kitty/boss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index cb178c5e9..faa06ac07 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -2256,7 +2256,7 @@ class Boss: else: w = None needs_window_replaced = False - if not no_replace_window: + if not no_replace_window and not get_options().startup_session: if w is not None and w.id == 1 and monotonic() - w.started_at < 2 and len(tuple(self.all_windows)) == 1: # first window, soon after startup replace it needs_window_replaced = True