From bf7f0ebc464d7e921795f6fd29216f110e435850 Mon Sep 17 00:00:00 2001 From: Rick Choi Date: Wed, 16 Oct 2024 08:03:12 +0900 Subject: [PATCH] handle paused_rendering state --- kitty/cursor_trail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/cursor_trail.c b/kitty/cursor_trail.c index d207ae19a..3805d5bd6 100644 --- a/kitty/cursor_trail.c +++ b/kitty/cursor_trail.c @@ -40,7 +40,8 @@ update_cursor_trail(CursorTrail *ct, Window *w, monotonic_t now, OSWindow *os_wi bool needs_render_prev = ct->needs_render; ct->needs_render = false; - if (!get_cursor_edge(&ct->cursor_edge_x[0], &ct->cursor_edge_x[1], + if (!WD.screen->paused_rendering.expires_at && + !get_cursor_edge(&ct->cursor_edge_x[0], &ct->cursor_edge_x[1], &ct->cursor_edge_y[0], &ct->cursor_edge_y[1], w)) { return needs_render_prev; }