mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
Update border layout when switching tabs
This commit is contained in:
parent
63359c358c
commit
c387a7897a
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ class Tab:
|
|||
def relayout(self):
|
||||
if self.windows:
|
||||
self.current_layout(self.windows, self.active_window_idx)
|
||||
self.relayout_borders()
|
||||
|
||||
def relayout_borders(self):
|
||||
self.borders(self.windows, self.active_window, self.current_layout.needs_window_borders and len(self.windows) > 1)
|
||||
|
||||
def next_layout(self):
|
||||
|
|
@ -198,6 +201,7 @@ class TabManager:
|
|||
if len(self.tabs) > 1:
|
||||
self.active_tab_idx = (self.active_tab_idx + len(self.tabs) + delta) % len(self.tabs)
|
||||
self.tabbar_dirty = True
|
||||
self.active_tab.relayout_borders()
|
||||
glfw_post_empty_event()
|
||||
|
||||
def __iter__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue