Author: mlytwyn
Date: Sun Mar 12 02:39:13 2017
New Revision: 40385
URL: http://svn.gna.org/viewcvs/gnustep?rev=40385&view=rev
Log:
Fix for bug 12825 - omit icon window from returned windows list
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSApplication.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSApplication.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSApplication.m?rev=40385&r1=40384&r2=40385&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSApplication.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSApplication.m Sun Mar
12 02:39:13 2017
@@ -2763,7 +2763,10 @@
*/
- (NSArray*) windows
{
- return GSAllWindows();
+ // Omit the app icon window
+ NSMutableArray *windows = AUTORELEASE([GSAllWindows() mutableCopy]);
+ [windows removeObject: [self iconWindow]];
+ return windows;
}
/**
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs