[haiku-commits] haiku: hrev45124 - src/kits/interface

  • From: hamishm53@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 3 Jan 2013 21:16:30 +0100 (CET)

hrev45124 adds 1 changeset to branch 'master'
old head: 1565964a118a8c28bfa98ce6347ffdf22c2f1446
new head: a0e655bff13f418f714840beebf6221008520d55
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a0e655b+%5E1565964

----------------------------------------------------------------------------

a0e655b: Fix BWindow::DecoratorFrame for top-titled windows.
  
  Also take into account the border width for the edge with the title.
  Fixes #8614.

                                   [ Hamish Morrison <hamishm53@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45124
Commit:      a0e655bff13f418f714840beebf6221008520d55
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a0e655b
Author:      Hamish Morrison <hamishm53@xxxxxxxxx>
Date:        Thu Jan  3 19:59:32 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/8614

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 3 deletions(-)
src/kits/interface/Window.cpp | 6 +++---

----------------------------------------------------------------------------

diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp
index 7808988..10cd771 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;


Other related posts:

  • » [haiku-commits] haiku: hrev45124 - src/kits/interface - hamishm53