diff options
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 | } |