diff options
author | markt <markt> | 2006-07-23 02:20:42 (GMT) |
---|---|---|
committer | markt <markt> | 2006-07-23 02:20:42 (GMT) |
commit | b0b28c4bbb20ffcf56b445caca112d8866c9c788 (patch) | |
tree | 6b80e92cf4ca57beeb4a8f5e64b5566747753a51 /src | |
parent | def26c19e5b787916104c03f5540e5b3a44004eb (diff) | |
download | fluxbox-b0b28c4bbb20ffcf56b445caca112d8866c9c788.zip fluxbox-b0b28c4bbb20ffcf56b445caca112d8866c9c788.tar.bz2 |
also move icons when removing a workspace
Diffstat (limited to 'src')
-rw-r--r-- | src/Screen.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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() { | |||
1033 | 1033 | ||
1034 | wkspc->removeAll(wkspc->workspaceID()-1); | 1034 | wkspc->removeAll(wkspc->workspaceID()-1); |
1035 | 1035 | ||
1036 | Icons::iterator it = iconList().begin(); | ||
1037 | const Icons::iterator it_end = iconList().end(); | ||
1038 | for (; it != it_end; ++it) { | ||
1039 | if ((*it)->workspaceNumber() == wkspc->workspaceID()) | ||
1040 | (*it)->setWorkspace(wkspc->workspaceID()-1); | ||
1041 | } | ||
1042 | m_clientlist_sig.notify(); | ||
1043 | |||
1036 | //remove last workspace | 1044 | //remove last workspace |
1037 | m_workspaces_list.pop_back(); | 1045 | m_workspaces_list.pop_back(); |
1038 | 1046 | ||