From 881d6c6ec8568cbec4c27c334b44e47b6bd80215 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 11 Feb 2020 11:16:41 +0100 Subject: [PATCH] Fixed bug #149 for Greenshot 2.x too --- src/Greenshot/Helpers/CaptureHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Greenshot/Helpers/CaptureHelper.cs b/src/Greenshot/Helpers/CaptureHelper.cs index 23ec9bf89..47731beb4 100644 --- a/src/Greenshot/Helpers/CaptureHelper.cs +++ b/src/Greenshot/Helpers/CaptureHelper.cs @@ -351,6 +351,11 @@ namespace Greenshot.Helpers _capture = WindowCapture.CaptureRectangle(_capture, screen.Bounds); captureTaken = true; + + // As the screen shot might be on a different monitor we need to correct the mouse location + var correctedCursorLocation = _capture.CursorLocation; + correctedCursorLocation.Offset(-screen.Bounds.Location.X, -screen.Bounds.Location.Y); + _capture.CursorLocation = correctedCursorLocation; break; } break;