mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:41:55 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
98ff76a0ca
commit
c76f978552
1 changed files with 24 additions and 13 deletions
|
@ -1489,8 +1489,13 @@ static NSMapTable* windowmaps = NULL;
|
|||
_rFlags.needs_display = NO;
|
||||
// FIXME: Is the first responder processing needed here?
|
||||
if ((!_firstResponder) || (_firstResponder == self))
|
||||
{
|
||||
if (_initialFirstResponder)
|
||||
{
|
||||
[self makeFirstResponder: _initialFirstResponder];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* inform first responder of it's status so it can set the focus to itself
|
||||
*/
|
||||
|
@ -1668,10 +1673,14 @@ static NSMapTable* windowmaps = NULL;
|
|||
- (BOOL) canStoreColor
|
||||
{
|
||||
if (_depthLimit > 1)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSScreen *) deepestScreen
|
||||
{
|
||||
|
@ -1698,7 +1707,9 @@ static NSMapTable* windowmaps = NULL;
|
|||
- (void) setDepthLimit: (NSWindowDepth)limit
|
||||
{
|
||||
if (limit == 0)
|
||||
limit = [[self class] defaultDepthLimit];
|
||||
{
|
||||
limit = [isa defaultDepthLimit];
|
||||
}
|
||||
|
||||
_depthLimit = limit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue