aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-06-01 02:10:35 (GMT)
committermarkt <markt>2007-06-01 02:10:35 (GMT)
commit09838bc58fb7bd60627cd3ac8cc14f358a469827 (patch)
treec116cc3d90a306f4e7e2fe582d8bb3f83fb9f01b
parent6667c365ce0a5620f3904885222d0f040e71dadd (diff)
downloadfluxbox-09838bc58fb7bd60627cd3ac8cc14f358a469827.zip
fluxbox-09838bc58fb7bd60627cd3ac8cc14f358a469827.tar.bz2
fixed infinite loop with Workspace::removeAll
-rw-r--r--src/Workspace.cc5
1 files 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) {
146 146
147 147
148void Workspace::removeAll(unsigned int dest) { 148void Workspace::removeAll(unsigned int dest) {
149 Windows::iterator it = m_windowlist.begin(); 149 Windows tmp_list(m_windowlist);
150 Windows::const_iterator it_end = m_windowlist.end(); 150 Windows::iterator it = tmp_list.begin();
151 Windows::const_iterator it_end = tmp_list.end();
151 for (; it != it_end; ++it) 152 for (; it != it_end; ++it)
152 m_screen.sendToWorkspace(dest, *it, false); 153 m_screen.sendToWorkspace(dest, *it, false);
153} 154}