Author: czeidler Date: 2010-10-18 17:49:14 +0200 (Mon, 18 Oct 2010) New Revision: 39004 Changeset: http://dev.haiku-os.org/changeset/39004 Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/Stacking.cpp Log: Only allow stacking if the candidate window is dragged using the window tab. Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/Stacking.cpp =================================================================== --- haiku/trunk/src/add-ons/decorators/SATDecorator/Stacking.cpp 2010-10-18 15:40:44 UTC (rev 39003) +++ haiku/trunk/src/add-ons/decorators/SATDecorator/Stacking.cpp 2010-10-18 15:49:14 UTC (rev 39004) @@ -227,6 +227,9 @@ 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;