From 09838bc58fb7bd60627cd3ac8cc14f358a469827 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 1 Jun 2007 02:10:35 +0000 Subject: fixed infinite loop with Workspace::removeAll --- src/Workspace.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 1a4aa06..a52a211 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -146,8 +146,9 @@ void Workspace::hideAll(bool interrupt_moving) { void Workspace::removeAll(unsigned int dest) { - Windows::iterator it = m_windowlist.begin(); - Windows::const_iterator it_end = m_windowlist.end(); + Windows tmp_list(m_windowlist); + Windows::iterator it = tmp_list.begin(); + Windows::const_iterator it_end = tmp_list.end(); for (; it != it_end; ++it) m_screen.sendToWorkspace(dest, *it, false); } -- cgit v0.11.2