From 8dc4647532d752eebaf5cb9e31ae7db75b03d914 Mon Sep 17 00:00:00 2001 From: "Krom, Robertus" Date: Tue, 11 Feb 2020 10:53:50 +0100 Subject: [PATCH] Fixed bug #149: If using a full screen capture of the current monitor, not the default, the mouse cursor is not visible. --- Greenshot/Helpers/CaptureHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Greenshot/Helpers/CaptureHelper.cs b/Greenshot/Helpers/CaptureHelper.cs index 34cc40abd..1ad014e56 100644 --- a/Greenshot/Helpers/CaptureHelper.cs +++ b/Greenshot/Helpers/CaptureHelper.cs @@ -310,6 +310,10 @@ namespace Greenshot.Helpers { if (screen.Bounds.Contains(mouseLocation)) { _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; } }