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:
parent
007179caca
commit
07a8c14656
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue