Bug 923715: Ignore closed windows in the windows iterator.
Add changes from review.
Merge pull request #1261 from Mossop/bug923715

Bug 923715: Ignore closed windows in the windows iterator. r=erikvold