mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 07:59:24 +02:00
When attaching window make its parent tab active
This commit is contained in:
@@ -1139,6 +1139,7 @@ class Boss:
|
||||
if overlaid_window:
|
||||
target_tab.attach_window(overlaid_window)
|
||||
self._cleanup_tab_after_window_removal(src_tab)
|
||||
target_tab.make_active()
|
||||
|
||||
def detach_window(self, *args):
|
||||
if not args:
|
||||
|
||||
@@ -417,6 +417,11 @@ class Tab: # {{{
|
||||
|
||||
def __repr__(self):
|
||||
return 'Tab(title={}, id={})'.format(self.name or self.title, hex(id(self)))
|
||||
|
||||
def make_active(self):
|
||||
tm = self.tab_manager_ref()
|
||||
if tm is not None:
|
||||
tm.set_active_tab(self)
|
||||
# }}}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user