Stop scroll animations when closing a window

This commit is contained in:
Hassan Raza 2026-10-06 18:51:05 +05:00
parent 8ca3cc0d30
commit 3142901159
No known key found for this signature in database

View file

@ -2120,6 +2120,7 @@ class Window:
self.clipboard_request_manager.close()
del self.kitten_result_processors
if hasattr(self, 'screen'):
self.finish_scroll_animation()
if self.is_active and self.os_window_id == current_focused_os_window_id():
# Cancel IME composition when window is destroyed
update_ime_position_for_window(self.id, False, -1)