]> Dogcows Code - chaz/openbox/commitdiff
fix bug from merging last netwm stuff
authorDana Jansens <danakj@orodu.net>
Thu, 30 May 2002 07:14:43 +0000 (07:14 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 30 May 2002 07:14:43 +0000 (07:14 +0000)
src/Screen.cc

index d22999efe81083e21a70ddb9dfd64c437b37812a..3b2b4cb9075b78de4c40a91722a8227f79f7437a 100644 (file)
@@ -1117,9 +1117,6 @@ void BScreen::removeNetizen(Window w) {
 }
 
 
-  xatom->setValue(getRootWindow(), XAtom::net_number_of_desktops,
-                  XAtom::cardinal, workspacesList.size());
-
 void BScreen::updateNetizenCurrentWorkspace(void) {
   std::for_each(netizenList.begin(), netizenList.end(),
                 std::mem_fun(&Netizen::sendCurrentWorkspace));
@@ -1127,6 +1124,9 @@ void BScreen::updateNetizenCurrentWorkspace(void) {
 
 
 void BScreen::updateNetizenWorkspaceCount(void) {
+  xatom->setValue(getRootWindow(), XAtom::net_number_of_desktops,
+                  XAtom::cardinal, workspacesList.size());
+
   std::for_each(netizenList.begin(), netizenList.end(),
                 std::mem_fun(&Netizen::sendWorkspaceCount));
 }
This page took 0.025798 seconds and 4 git commands to generate.