Opened 12 years ago

Closed 12 years ago

#8614 closed bug (fixed)

BWindow::DecoratorFrame returns incorrect results

Reported by: hamish Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

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.

Change History (1)

comment:1 by hamish, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev45124.

Note: See TracTickets for help on using tickets.