Optimizing the windows logic, as far as was possible without LINQ. Added a check to try to fix BUG-2017.

This commit is contained in:
Robin 2016-09-04 16:42:02 +02:00
commit d446127e19
5 changed files with 316 additions and 315 deletions

View file

@ -471,7 +471,7 @@ namespace Greenshot.Helpers {
private void RetrieveWindowDetails() {
LOG.Debug("start RetrieveWindowDetails");
// Start Enumeration of "active" windows
List<WindowDetails> allWindows = WindowDetails.GetMetroApps();
List<WindowDetails> allWindows = new List<WindowDetails>(WindowDetails.GetMetroApps());
allWindows.AddRange(WindowDetails.GetAllWindows());
foreach (WindowDetails window in allWindows) {
// Window should be visible and not ourselves