mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixes for Bug #3569703
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2077 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
079dab8621
commit
0d40ebe346
1 changed files with 13 additions and 0 deletions
|
@ -343,6 +343,19 @@ namespace Greenshot.Helpers {
|
||||||
if (windowDetailsThread != null) {
|
if (windowDetailsThread != null) {
|
||||||
windowDetailsThread.Join();
|
windowDetailsThread.Join();
|
||||||
}
|
}
|
||||||
|
// Set capture title, fixing bug #3569703
|
||||||
|
foreach (WindowDetails window in WindowDetails.GetVisibleWindows()) {
|
||||||
|
Point estimatedLocation = new Point(RuntimeConfig.LastCapturedRegion.X + (RuntimeConfig.LastCapturedRegion.Width / 2), RuntimeConfig.LastCapturedRegion.Y + (RuntimeConfig.LastCapturedRegion.Height / 2));
|
||||||
|
if (window.Contains(estimatedLocation)) {
|
||||||
|
selectedCaptureWindow = window;
|
||||||
|
capture.CaptureDetails.Title = selectedCaptureWindow.Text;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Move cursor, fixing bug #3569703
|
||||||
|
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.CaptureDetails.AddMetaData("source", "screen");
|
capture.CaptureDetails.AddMetaData("source", "screen");
|
||||||
HandleCapture();
|
HandleCapture();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue