mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 09:22:07 +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
4f53bd35bc
commit
f498130747
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>
|
2007-01-19 Sergii Stoian <stoyan255@gmail.com>
|
||||||
|
|
||||||
* Source/GSTheme.m (-drawButton:view:style:state:): Call
|
* 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
|
key/main and skip the main menu window (which is the only
|
||||||
non-obvious window that can become key) unless we have no choice
|
non-obvious window that can become key) unless we have no choice
|
||||||
(i.e. all the candidate windows were ordered out.)
|
(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
|
- (void) _lossOfKeyOrMainWindow
|
||||||
{
|
{
|
||||||
NSArray *windowList = GSAllWindows();
|
NSArray *windowList = GSOrderedWindows();
|
||||||
unsigned pos = [windowList indexOfObjectIdenticalTo: self];
|
unsigned pos = [windowList indexOfObjectIdenticalTo: self];
|
||||||
unsigned c = [windowList count];
|
unsigned c = [windowList count];
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue