From adcc616c92b7da239be5e694f77fe55075c7d45d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Mar 2022 16:04:01 +0530 Subject: [PATCH] ... --- kitty/window.py | 5 ++--- kitty/window_list.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kitty/window.py b/kitty/window.py index 18e523c94..bef74bdd8 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -943,9 +943,8 @@ class Window: def handle_overlay_ready(self, msg: str) -> None: boss = get_boss() tab = boss.tab_for_window(self) - if tab is None: - return - tab.move_window_to_top_of_group(self) + if tab is not None: + tab.move_window_to_top_of_group(self) def handle_remote_askpass(self, msg: str) -> None: from .shm import SharedMemory diff --git a/kitty/window_list.py b/kitty/window_list.py index a07b83b27..4908ad093 100644 --- a/kitty/window_list.py +++ b/kitty/window_list.py @@ -68,7 +68,6 @@ class WindowGroup: self.windows.append(window) def move_window_to_top_of_group(self, window: WindowType) -> bool: - id try: idx = self.windows.index(window) except ValueError: