Skip to content

Commit

Permalink
fix: Cannot capture image in second screen #79
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Nov 1, 2023
1 parent 999faac commit 81fe09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/wayland_screenshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down

0 comments on commit 81fe09d

Please sign in to comment.