This commit is contained in:
Kovid Goyal 2026-03-01 10:38:23 +05:30
parent 04c35d85da
commit 08d84aa211
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -815,7 +815,15 @@ class Tab: # {{{
overlay_for = window.id
def set_active_window(self, x: Window | int, for_keep_focus: Window | None = None) -> None:
if isinstance(x, int):
for q in self:
if q.id == x:
x = q
break
else:
return
self.windows.set_active_window_group_for(x, for_keep_focus=for_keep_focus)
self.windows.move_window_to_top_of_group(x)
def get_nth_window(self, n: int) -> Window | None:
if self.windows: