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:
Clemens Zeidler 2010-10-18 15:49:14 +00:00
parent 007179caca
commit 07a8c14656
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ SATStacking::FindSnappingCandidates(SATGroup* group)
BPoint mousePosition;
int32 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
mousePosition.y = window->Decorator()->TabRect().top;