diff --git a/src/add-ons/decorators/SATDecorator/Stacking.cpp b/src/add-ons/decorators/SATDecorator/Stacking.cpp index 56bbf167f5..d0ee4ed6c5 100644 --- a/src/add-ons/decorators/SATDecorator/Stacking.cpp +++ b/src/add-ons/decorators/SATDecorator/Stacking.cpp @@ -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;