From a548e3eb4d41fb1c967fd058647fca8fb5c56516 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Jan 2023 22:39:30 +0530 Subject: [PATCH] Fix some animations pausing before starting --- kitty/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/graphics.c b/kitty/graphics.c index 44f6acccd..e0dc5aa35 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -1252,7 +1252,7 @@ handle_animation_control_command(GraphicsManager *self, bool *is_dirty, const Gr if (img->animation_state == ANIMATION_STOPPED) { img->current_loop = 0; } else { - if (old_state == ANIMATION_STOPPED) img->current_frame_shown_at = monotonic(); + if (old_state == ANIMATION_STOPPED) { img->current_frame_shown_at = monotonic(); img->is_drawn = true; } self->has_images_needing_animation = true; global_state.check_for_active_animated_images = true; }