From aafc083219792aac19061fb4c60272a329e9ef15 Mon Sep 17 00:00:00 2001 From: Rick Choi Date: Mon, 14 Oct 2024 10:37:33 +0900 Subject: [PATCH] fix - trail animation not working smoothly in linux --- kitty/child-monitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 31b652839..d2c6707d3 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -751,7 +751,10 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int * WD.screen->cursor_render_info.is_focused = os_window->is_focused; set_os_window_title_from_window(w, os_window); *active_window_bg = window_bg; - if (OPT(enable_cursor_trail) && update_cursor_trail(&tab->cursor_trail, w, now, os_window)) needs_render = true; + if (OPT(enable_cursor_trail) && update_cursor_trail(&tab->cursor_trail, w, now, os_window)) { + needs_render = true; + set_maximum_wait(OPT(repaint_delay)); + } } else { if (WD.screen->cursor_render_info.render_even_when_unfocused) { if (collect_cursor_info(&WD.screen->cursor_render_info, w, now, os_window)) needs_render = true;