From b0b28c4bbb20ffcf56b445caca112d8866c9c788 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 23 Jul 2006 02:20:42 +0000 Subject: also move icons when removing a workspace --- src/Screen.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Screen.cc b/src/Screen.cc index 8dcf528..0d8937e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1033,6 +1033,14 @@ int BScreen::removeLastWorkspace() { 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 m_workspaces_list.pop_back(); -- cgit v0.11.2