зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2fd37b4b5d
Коммит
25585af194
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче