Only allow stacking if the candidate window is dragged using the window tab.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39004 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -227,6 +227,9 @@ SATStacking::FindSnappingCandidates(SATGroup* group)
|
|||||||
BPoint mousePosition;
|
BPoint mousePosition;
|
||||||
int32 buttons;
|
int32 buttons;
|
||||||
fSATWindow->GetDesktop()->GetLastMouseState(&mousePosition, &buttons);
|
fSATWindow->GetDesktop()->GetLastMouseState(&mousePosition, &buttons);
|
||||||
|
if (!window->Decorator()->TabRect().Contains(mousePosition))
|
||||||
|
return false;
|
||||||
|
|
||||||
// use the upper edge of the candidate window to find the parent window
|
// use the upper edge of the candidate window to find the parent window
|
||||||
mousePosition.y = window->Decorator()->TabRect().top;
|
mousePosition.y = window->Decorator()->TabRect().top;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user