From ac00b050de43727a0e1f7d94eed0e17e72830590 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 22 Oct 2002 14:47:22 +0000 Subject: using isGroupable --- src/Workspace.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 6275062..036fc46 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.32 2002/10/13 21:52:00 fluxgen Exp $ +// $Id: Workspace.cc,v 1.33 2002/10/22 14:47:22 fluxgen Exp $ #include "Workspace.hh" @@ -354,7 +354,12 @@ void Workspace::checkGrouping(FluxboxWindow &win) { cerr<<__FILE__<<"("<<__LINE__<<"): Checking grouping. ("<instanceName()<isGroupable()) + break; // try next name //toggle tab on if ((*wit)->getTab() == 0) (*wit)->setTab(true); if (win.getTab() == 0) win.setTab(true); + // did we succefully set the tab? + if ((*wit)->getTab() == 0) + break; // try another window (*wit)->getTab()->insert(win.getTab()); return; // grouping done -- cgit v0.11.2