Correctly check if the mouse has been on the tab.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39750 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
|||||||
/*! Indicates that window is stacked */
|
/*! Indicates that window is stacked */
|
||||||
void SetStackedMode(bool stacked, BRegion* dirty);
|
void SetStackedMode(bool stacked, BRegion* dirty);
|
||||||
bool StackedMode() const
|
bool StackedMode() const
|
||||||
{ return fStackedMode; };
|
{ return fStackedMode; }
|
||||||
|
|
||||||
/*! Set the tab length if the decorator is in stacked mode and if
|
/*! Set the tab length if the decorator is in stacked mode and if
|
||||||
the tab is the last one in the tab bar. */
|
the tab is the last one in the tab bar. */
|
||||||
|
|||||||
@@ -797,7 +797,7 @@ SATWindow::_RestoreOriginalSize(bool stayBelowMouse)
|
|||||||
if (decorator == NULL)
|
if (decorator == NULL)
|
||||||
return;
|
return;
|
||||||
BRect tabRect = decorator->TabRect();
|
BRect tabRect = decorator->TabRect();
|
||||||
if (mousePosition.y < tabRect.bottom
|
if (mousePosition.y < tabRect.bottom && mousePosition.y > tabRect.top
|
||||||
&& mousePosition.x <= frame.right + decorator->BorderWidth() +1
|
&& mousePosition.x <= frame.right + decorator->BorderWidth() +1
|
||||||
&& mousePosition.x >= frame.left + decorator->BorderWidth()) {
|
&& mousePosition.x >= frame.left + decorator->BorderWidth()) {
|
||||||
// verify mouse stays on the tab
|
// verify mouse stays on the tab
|
||||||
|
|||||||
Reference in New Issue
Block a user