Fix BWindow::DecoratorFrame for top-titled windows.

Also take into account the border width for the edge with the title.
Fixes #8614.
This commit is contained in:
Hamish Morrison 2013-01-03 19:59:32 +00:00
parent 1565964a11
commit a0e655bff1

View File

@ -2139,13 +2139,13 @@ BWindow::DecoratorFrame() const
// else use fall-back values from above
}
if (fLook & kLeftTitledWindowLook) {
if (fLook == kLeftTitledWindowLook) {
decoratorFrame.top -= borderWidth;
decoratorFrame.left -= tabRect.Width();
decoratorFrame.left -= borderWidth + tabRect.Width();
decoratorFrame.right += borderWidth;
decoratorFrame.bottom += borderWidth;
} else {
decoratorFrame.top -= tabRect.Height();
decoratorFrame.top -= borderWidth + tabRect.Height();
decoratorFrame.left -= borderWidth;
decoratorFrame.right += borderWidth;
decoratorFrame.bottom += borderWidth;