Skip to content

Commit

Permalink
Graphics protocol: Fix composing onto currently displayed frame not u…
Browse files Browse the repository at this point in the history
…pdating the frame on the GPU. Fixes #3874
  • Loading branch information
kovidgoyal committed Jul 28, 2021
1 parent a22404a commit e872169
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kitty/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
// }}}

Expand Down

0 comments on commit e872169

Please sign in to comment.