From 6a7b01eed90257c1678f88add2cab75dee504fd5 Mon Sep 17 00:00:00 2001 From: desvaters Date: Mon, 19 Oct 2026 16:52:46 +0200 Subject: [PATCH] Restore removal of the clear progress timer on window destruction 5c4f6b39b removed the timer in Window.destroy() so that it cannot call back into a destroyed window, but 100c78bbb dropped those lines again, presumably by accident. Closing a window whose program had reported progress via OSC 9;4 then leaves the timer running, and once the progress goes stale clear_progress_if_needed() raises: AttributeError: 'Window' object has no attribute 'screen' --- kitty/window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/window.py b/kitty/window.py index 108d7b656..432ff8b0e 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -2179,6 +2179,9 @@ class Window: def destroy(self) -> None: self.call_watchers(self.watchers.on_close, {}) self.destroyed = True + if self.clear_progress_timer: + remove_timer(self.clear_progress_timer) + self.clear_progress_timer = 0 self.clipboard_request_manager.close() del self.kitten_result_processors if hasattr(self, 'screen'):