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:
@@ -472,9 +472,16 @@ void
|
|||||||
SATWindow::FindSnappingCandidates()
|
SATWindow::FindSnappingCandidates()
|
||||||
{
|
{
|
||||||
fOngoingSnapping = NULL;
|
fOngoingSnapping = NULL;
|
||||||
|
|
||||||
|
if (fWindow->Feel() != B_NORMAL_WINDOW_FEEL)
|
||||||
|
return;
|
||||||
|
|
||||||
GroupIterator groupIterator(fStackAndTile, GetWindow()->Desktop());
|
GroupIterator groupIterator(fStackAndTile, GetWindow()->Desktop());
|
||||||
for (SATGroup* group = groupIterator.NextGroup(); group;
|
for (SATGroup* group = groupIterator.NextGroup(); group;
|
||||||
group = groupIterator.NextGroup()) {
|
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++) {
|
for (int i = 0; i < fSATSnappingBehaviourList.CountItems(); i++) {
|
||||||
if (fSATSnappingBehaviourList.ItemAt(i)->FindSnappingCandidates(
|
if (fSATSnappingBehaviourList.ItemAt(i)->FindSnappingCandidates(
|
||||||
group)) {
|
group)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user