mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
* 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:
parent
be6dee6f99
commit
3aa639828d
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue