From f404e9d520519df5b268bca66941fa30690d2c96 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sat, 5 Aug 2023 22:13:07 +0800 Subject: [PATCH] [refactor] libwayshot, skip composited buffer as it's being overlayed onto Signed-off-by: decodetalkers Signed-off-by: Shinyzenith --- libwayshot/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwayshot/src/lib.rs b/libwayshot/src/lib.rs index f51fb90d..77dcdf15 100644 --- a/libwayshot/src/lib.rs +++ b/libwayshot/src/lib.rs @@ -379,8 +379,8 @@ impl WayshotConnection { images.push(image); } composited_image = images[0].clone(); - for image in images { - overlay(&mut composited_image, &image, 0, 0); + for image in images.iter().skip(1) { + overlay(&mut composited_image, image, 0, 0); } }