From e872169e4c711f9b3f9614b75793614feab053f1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 28 Jul 2021 15:46:50 +0530 Subject: [PATCH] Graphics protocol: Fix composing onto currently displayed frame not updating the frame on the GPU. Fixes #3874 --- kitty/graphics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/graphics.c b/kitty/graphics.c index 8ff01675c9f..8949d880208 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -1362,6 +1362,7 @@ handle_compose_command(GraphicsManager *self, bool *is_dirty, const GraphicsComm dest_frame->x = 0; dest_frame->y = 0; dest_frame->width = img->width; dest_frame->height = img->height; dest_frame->base_frame_id = 0; dest_frame->bgcolor = 0; *is_dirty = (g->other_frame_number - 1) == img->current_frame_index; + if (*is_dirty) update_current_frame(self, img, &dest_data); } // }}}