diff options
author | markt <markt> | 2007-06-01 02:10:35 (GMT) |
---|---|---|
committer | markt <markt> | 2007-06-01 02:10:35 (GMT) |
commit | 09838bc58fb7bd60627cd3ac8cc14f358a469827 (patch) | |
tree | c116cc3d90a306f4e7e2fe582d8bb3f83fb9f01b /src | |
parent | 6667c365ce0a5620f3904885222d0f040e71dadd (diff) | |
download | fluxbox-09838bc58fb7bd60627cd3ac8cc14f358a469827.zip fluxbox-09838bc58fb7bd60627cd3ac8cc14f358a469827.tar.bz2 |
fixed infinite loop with Workspace::removeAll
Diffstat (limited to 'src')
-rw-r--r-- | src/Workspace.cc | 5 |
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 | ||
148 | void Workspace::removeAll(unsigned int dest) { | 148 | void 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 | } |