* Source/NSWindow.m (-_lossOfKeyOrMainWindow): Use GSOrderedWindows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24399 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2007-01-23 13:16:00 +00:00
parent be6dee6f99
commit 3aa639828d
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2007-01-23 Matt Rice <ratmice@gmail.com>
* Source/NSWindow.m (-_lossOfKeyOrMainWindow): Use GSOrderedWindows.
2007-01-19 Sergii Stoian <stoyan255@gmail.com>
* Source/GSTheme.m (-drawButton:view:style:state:): Call

View file

@ -231,14 +231,10 @@ has blocked and waited for events.
key/main and skip the main menu window (which is the only
non-obvious window that can become key) unless we have no choice
(i.e. all the candidate windows were ordered out.)
FIXME: It would really be better if we maintained a stack of the
most recent key/main windows and went through in order of most
recent to least recent. That's probably a lot of work, however.
*/
- (void) _lossOfKeyOrMainWindow
{
NSArray *windowList = GSAllWindows();
NSArray *windowList = GSOrderedWindows();
unsigned pos = [windowList indexOfObjectIdenticalTo: self];
unsigned c = [windowList count];
unsigned i;