aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-12-30 14:33:38 (GMT)
committerfluxgen <fluxgen>2004-12-30 14:33:38 (GMT)
commit45f00785e9b072e29dc7802f590d7af0e47898a2 (patch)
tree6413a6b0ed2a4bf9a9cbb85712f97671795888fb /src/Screen.cc
parent96e62e53ae278906e1eba0474b70f6bc1714945d (diff)
downloadfluxbox-45f00785e9b072e29dc7802f590d7af0e47898a2.zip
fluxbox-45f00785e9b072e29dc7802f590d7af0e47898a2.tar.bz2
fixed remove workspace bug
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 2cf3292..10921e0 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -877,11 +877,15 @@ int BScreen::removeLastWorkspace() {
877 877
878 //remove last workspace 878 //remove last workspace
879 m_workspaces_list.pop_back(); 879 m_workspaces_list.pop_back();
880 delete wkspc; 880
881 881
882 882
883 updateNetizenWorkspaceCount(); 883 updateNetizenWorkspaceCount();
884 saveWorkspaces(m_workspaces_list.size()); 884 saveWorkspaces(m_workspaces_list.size());
885 // must be deleted after we send notify!!
886 // so we dont get bad pointers somewhere
887 // while processing the notify signal
888 delete wkspc;
885 889
886 return m_workspaces_list.size(); 890 return m_workspaces_list.size();
887} 891}