fixed infinite loop caused by removing the last workspace when it contains windows
markt markt
2 files changed,
7 insertions(+),
2 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,5 +1,9 @@
(Format: Year/Month/Day) Changes for 1.0.0: +*07/06/01: + * Fixed infinite loop caused by removing the last workspace when it contains + windows (Mark) + Workspace.cc *07/05/20: * Fixed bug #1717782, Bad fullscreen in ooimpress2 ( Henrik ) mwm hint had no-resize which made resizing with
M
src/Workspace.cc
→
src/Workspace.cc
@@ -245,8 +245,9 @@ }
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); }