From e6aeaaa4ffbef3e8295f24197068c9e8dba8f030 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Mar 2026 19:48:36 +0530 Subject: [PATCH] Fix #9602 --- kitty/tabs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kitty/tabs.py b/kitty/tabs.py index 545a18e05..78e98d6f6 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -1164,6 +1164,11 @@ def add_tabs_from_session(self, session: SessionType, session_name: str = '') -> # focus_tab. if (at := self.active_tab) and (w := at.active_window): w.last_focused_at = monotonic() + active_tab = self.active_tab + for tab in added_tabs: + w = tab.active_window + for q in tab: + q.focus_changed(w is q and tab is active_tab) @property def active_tab_idx(self) -> int: