mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Fixed thread error
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1637 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b08c8991a5
commit
034daa3957
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ namespace Greenshot.Helpers {
|
||||||
break;
|
break;
|
||||||
case CaptureMode.ActiveWindow:
|
case CaptureMode.ActiveWindow:
|
||||||
if (CaptureActiveWindow()) {
|
if (CaptureActiveWindow()) {
|
||||||
|
if (windowDetailsThread != null) {
|
||||||
|
windowDetailsThread.Join();
|
||||||
|
}
|
||||||
// Capture worked, offset mouse according to screen bounds and capture location
|
// Capture worked, offset mouse according to screen bounds and capture location
|
||||||
capture.MoveMouseLocation(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);
|
capture.MoveMouseLocation(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);
|
||||||
capture.MoveElements(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);
|
capture.MoveElements(capture.ScreenBounds.Location.X-capture.Location.X, capture.ScreenBounds.Location.Y-capture.Location.Y);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue