trunk: make status bar inactive when window isn't main window

This commit is contained in:
Mitchell Livingston
2007-11-01 12:57:35 +00:00
parent 91f4a5db9b
commit 525cf7904d
5 changed files with 19 additions and 26 deletions

View File

@@ -33,12 +33,12 @@
- (BOOL) isOpaque
{
return [[self window] isKeyWindow];
return [[self window] isMainWindow];
}
- (void) drawRect: (NSRect) rect
{
if ([[self window] isKeyWindow])
if ([[self window] isMainWindow])
[super drawRect: rect];
}