Only add windows that are either visible or miniaturized.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29117 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2009-12-12 10:10:40 +00:00
parent 483044e48c
commit cacdad6f44
2 changed files with 8 additions and 2 deletions

View file

@ -3121,7 +3121,8 @@ image.</p><p>See Also: -applicationIconImage</p>
{
NSWindow *win = [windows objectAtIndex: i];
if ([win isExcludedFromWindowsMenu] == NO)
if (([win isExcludedFromWindowsMenu] == NO)
&& ([win isVisible] || [win isMiniaturized]))
{
NSString *t = [win title];
NSString *f = [win representedFilename];