Only allow to S&T window with a normal window feel. This behaviour makes S&T more consistent e.g. floating windows suddenly disappeared from the S&T group when the subset window was inactive.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39688 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-12-01 02:58:40 +00:00
parent 1d8e6ee862
commit b108306f59

View File

@ -472,9 +472,16 @@ void
SATWindow::FindSnappingCandidates()
{
fOngoingSnapping = NULL;
if (fWindow->Feel() != B_NORMAL_WINDOW_FEEL)
return;
GroupIterator groupIterator(fStackAndTile, GetWindow()->Desktop());
for (SATGroup* group = groupIterator.NextGroup(); group;
group = groupIterator.NextGroup()) {
if (group->CountItems() == 1
&& group->WindowAt(0)->GetWindow()->Feel() != B_NORMAL_WINDOW_FEEL)
continue;
for (int i = 0; i < fSATSnappingBehaviourList.CountItems(); i++) {
if (fSATSnappingBehaviourList.ItemAt(i)->FindSnappingCandidates(
group)) {