Skip to content

Commit

Permalink
Fix BWindow::DecoratorFrame for top-titled windows.
Browse files Browse the repository at this point in the history
Also take into account the border width for the edge with the title.
Fixes #8614.
  • Loading branch information
hamishm committed Jan 3, 2013
1 parent 1565964 commit a0e655b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kits/interface/Window.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a0e655b

Please sign in to comment.