From a0e655bff13f418f714840beebf6221008520d55 Mon Sep 17 00:00:00 2001 From: Hamish Morrison Date: Thu, 3 Jan 2013 19:59:32 +0000 Subject: [PATCH] Fix BWindow::DecoratorFrame for top-titled windows. Also take into account the border width for the edge with the title. Fixes #8614. --- src/kits/interface/Window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 78089889e21..10cd771a538 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -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;