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: