From 07a8c146566b3a7be900e4646d0a59386747e400 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 18 Oct 2010 15:49:14 +0000 Subject: [PATCH] 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 --- src/add-ons/decorators/SATDecorator/Stacking.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;