Don't remove the window if there is only one window in the group. Fixes #7884.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
94e15508ec
commit
57e0263ceb
@ -357,7 +357,8 @@ StackAndTile::WindowHidden(Window* window)
|
|||||||
SATGroup* group = satWindow->GetGroup();
|
SATGroup* group = satWindow->GetGroup();
|
||||||
if (group == NULL)
|
if (group == NULL)
|
||||||
return;
|
return;
|
||||||
group->RemoveWindow(satWindow);
|
if (group->CountItems() > 1)
|
||||||
|
group->RemoveWindow(satWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -418,7 +419,7 @@ void
|
|||||||
StackAndTile::WindowFeelChanged(Window* window, window_feel feel)
|
StackAndTile::WindowFeelChanged(Window* window, window_feel feel)
|
||||||
{
|
{
|
||||||
// check if it is still a compatible feel
|
// check if it is still a compatible feel
|
||||||
if (feel != B_NORMAL_WINDOW_FEEL)
|
if (feel == B_NORMAL_WINDOW_FEEL)
|
||||||
return;
|
return;
|
||||||
SATWindow* satWindow = GetSATWindow(window);
|
SATWindow* satWindow = GetSATWindow(window);
|
||||||
if (!satWindow)
|
if (!satWindow)
|
||||||
@ -426,7 +427,8 @@ StackAndTile::WindowFeelChanged(Window* window, window_feel feel)
|
|||||||
SATGroup* group = satWindow->GetGroup();
|
SATGroup* group = satWindow->GetGroup();
|
||||||
if (!group)
|
if (!group)
|
||||||
return;
|
return;
|
||||||
group->RemoveWindow(satWindow);
|
if (group->CountItems() > 1)
|
||||||
|
group->RemoveWindow(satWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user