also move icons when removing a workspace

This commit is contained in:
markt 2006-07-23 02:20:42 +00:00
parent def26c19e5
commit b0b28c4bbb

View file

@ -1033,6 +1033,14 @@ int BScreen::removeLastWorkspace() {
wkspc->removeAll(wkspc->workspaceID()-1); wkspc->removeAll(wkspc->workspaceID()-1);
Icons::iterator it = iconList().begin();
const Icons::iterator it_end = iconList().end();
for (; it != it_end; ++it) {
if ((*it)->workspaceNumber() == wkspc->workspaceID())
(*it)->setWorkspace(wkspc->workspaceID()-1);
}
m_clientlist_sig.notify();
//remove last workspace //remove last workspace
m_workspaces_list.pop_back(); m_workspaces_list.pop_back();