aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 66dd4a6..fd81e5e 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -245,8 +245,9 @@ void Workspace::hideAll(bool interrupt_moving) {
245 245
246 246
247void Workspace::removeAll(unsigned int dest) { 247void Workspace::removeAll(unsigned int dest) {
248 Windows::iterator it = m_windowlist.begin(); 248 Windows tmp_list(m_windowlist);
249 Windows::const_iterator it_end = m_windowlist.end(); 249 Windows::iterator it = tmp_list.begin();
250 Windows::const_iterator it_end = tmp_list.end();
250 for (; it != it_end; ++it) 251 for (; it != it_end; ++it)
251 m_screen.sendToWorkspace(dest, *it, false); 252 m_screen.sendToWorkspace(dest, *it, false);
252} 253}