Bug 605806. Only draw titlebar widget when DWM is on. r=jimm a=betaN

This commit is contained in:
Felipe Gomes 2010-10-22 15:07:53 -02:00
Родитель 92da5c56af
Коммит 74dace6d6e
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1426,8 +1426,9 @@ RENDER_AGAIN:
nsUXThemeData::drawThemeBG(theme, hdc, gripPart, state, &widgetRect, &clipRect);
}
}
else if (aWidgetType == NS_THEME_WINDOW_BUTTON_BOX ||
aWidgetType == NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED)
else if ((aWidgetType == NS_THEME_WINDOW_BUTTON_BOX ||
aWidgetType == NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED) &&
nsUXThemeData::CheckForCompositor())
{
// The caption buttons are drawn by the DWM, we just need to clear the area where they
// are because we might have drawn something above them (like a background-image).