[haiku-bugs] [Haiku] #8614: BWindow::DecoratorFrame returns incorrect results

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 29 May 2012 15:51:17 -0000

#8614: BWindow::DecoratorFrame returns incorrect results
--------------------------------+------------------------------
 Reporter:  hamish              |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 `BWindow::DecoratorFrame` returns the frame that the window would have if
 it were left-titled, even when it's not left-titled.

 The culprit is line 2141: http://cgit.haiku-
 os.org/haiku/tree/src/kits/interface/Window.cpp#n2141.
 `kWindowLeftTitledLook` is not a bit flag so the comparison should be
 `==`.

 Also `decoratorFrame.top`/`decoratorFrame.left` should take the border
 width into account in addition to the title width.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8614>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: