Only search for new snapping parents if there is also a snapping candidate. Thanks Humdinger for finding this bug.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38625 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-09-12 22:40:08 +00:00
parent 188b1fe0d1
commit 40c0ae4804
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ StackAndTile::WindowMoved(Window* window)
if (!satWindow)
return;
if (SATKeyPressed())
if (SATKeyPressed() && fCurrentSATWindow)
satWindow->FindSnappingCandidates();
else
satWindow->DoGroupLayout();
@ -185,7 +185,7 @@ StackAndTile::WindowResized(Window* window)
if (!satWindow)
return;
if (SATKeyPressed())
if (SATKeyPressed() && fCurrentSATWindow)
satWindow->FindSnappingCandidates();
else {
satWindow->DoGroupLayout();