From 81fe09d5aceed0f171c39c9d1d04718218bc33ec Mon Sep 17 00:00:00 2001 From: nashaofu Date: Wed, 1 Nov 2023 22:56:15 +0800 Subject: [PATCH] fix: Cannot capture image in second screen #79 --- src/linux/wayland_screenshot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/wayland_screenshot.rs b/src/linux/wayland_screenshot.rs index 6d5da96..b579caa 100644 --- a/src/linux/wayland_screenshot.rs +++ b/src/linux/wayland_screenshot.rs @@ -73,7 +73,7 @@ fn org_gnome_shell_screenshot( (x, y, width, height, false, &filename), )?; - let rgba_image = png_to_rgba_image(&filename, x, y, width, height)?; + let rgba_image = png_to_rgba_image(&filename, 0, 0, width, height)?; fs::remove_file(&filename)?;