mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:20:38 +00:00
Correct issue with detecting if app is in foreground
This commit is contained in:
parent
5b96ad6692
commit
9953d7d132
2 changed files with 26 additions and 4 deletions
|
@ -115,7 +115,7 @@ static int _clients = 0;
|
|||
[_engine start];
|
||||
}
|
||||
|
||||
_blocking = [[NSMutableArray alloc] initWithCapacity: 10]; // 10 seems reasonable...
|
||||
_blocking = [[NSMutableArray alloc] initWithCapacity: 10];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ static int _clients = 0;
|
|||
|
||||
- (BOOL) isBlocking: (NSString *)s
|
||||
{
|
||||
return [[_blocking firstObject] isEqualToString: s];
|
||||
return [[_blocking lastObject] isEqualToString: s];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue