From cc4f4ca5f8ee702059774804d373373c67ae12d7 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sun, 19 Sep 2010 20:25:29 +0000 Subject: [PATCH] Don't try to split a group if there is still a window stacked in a WindowArea. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38727 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/decorators/SATDecorator/SATGroup.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add-ons/decorators/SATDecorator/SATGroup.cpp b/src/add-ons/decorators/SATDecorator/SATGroup.cpp index a1e5cdc69f..59918614a2 100644 --- a/src/add-ons/decorators/SATDecorator/SATGroup.cpp +++ b/src/add-ons/decorators/SATDecorator/SATGroup.cpp @@ -861,6 +861,10 @@ SATGroup::_FindTab(const TabList& list, float position) void SATGroup::_SplitGroupIfNecessary(SATWindow* removedWindow) { + // if there are windows stacked in the area we don't need to split + if (removedWindow->GetWindowArea()->WindowList().CountItems() > 1) + return; + WindowAreaList neighbourWindows; _FillNeighbourList(neighbourWindows, removedWindow->GetWindowArea());