fixed infinite loop caused by removing the last workspace when it contains windows

This commit is contained in:
markt 2007-06-01 02:15:26 +00:00
parent bbea139cae
commit e6e784e20d
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -245,8 +245,9 @@ void Workspace::hideAll(bool interrupt_moving) {
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);
}