Bug 458297 - Form widgets and scrollbar should not be grayed when clicking on menus or dock stacks. r=smichaud, sr=roc, a191=beltzner

This commit is contained in:
Markus Stange 2008-11-27 23:38:24 +01:00
Родитель 2fd37b4b5d
Коммит 25585af194
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -157,7 +157,11 @@ static BOOL FrameIsInActiveWindow(nsIFrame* aFrame)
// but controls in these windows should still get the active look.
nsWindowType windowType;
topLevelWidget->GetWindowType(windowType);
return [win isKeyWindow] || (windowType == eWindowType_popup);
if (windowType == eWindowType_popup)
return YES;
if ([win isSheet])
return [win isKeyWindow];
return [win isMainWindow] && ![win attachedSheet];
}
NS_IMPL_ISUPPORTS1(nsNativeThemeCocoa, nsITheme)