]> Dogcows Code - chaz/openbox/commitdiff
dont reconfigure during startup. thats a waste and screws up stuff!
authorDana Jansens <danakj@orodu.net>
Fri, 19 Jul 2002 06:47:27 +0000 (06:47 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 19 Jul 2002 06:47:27 +0000 (06:47 +0000)
src/Screen.cc

index e0ef585f20b09d9013ba8fda65fd832a6f69eb04..2887dc4d3f0d2fff8dbe3a00d16f8e19c6fc700c 100644 (file)
@@ -613,8 +613,9 @@ void BScreen::load_rc(void) {
   else
     resource.col_direction = TopBottom;
 
-  XAtom::StringVect workspaceNames;
   if (config->getValue(screenstr + "workspaceNames", s)) {
+    XAtom::StringVect workspaceNames;
+
     string::const_iterator it = s.begin(), end = s.end();
     while(1) {
       string::const_iterator tmp = it;     // current string.begin()
@@ -624,9 +625,10 @@ void BScreen::load_rc(void) {
         break;
       ++it;
     }
+
+    xatom->setValue(getRootWindow(), XAtom::net_desktop_names, XAtom::utf8,
+                    workspaceNames);
   }
-  xatom->setValue(getRootWindow(), XAtom::net_desktop_names, XAtom::utf8,
-                  workspaceNames);
 
   resource.sloppy_focus = true;
   resource.auto_raise = false;
@@ -685,6 +687,10 @@ void BScreen::load_rc(void) {
 
 
 void BScreen::reconfigure(void) {
+  // don't reconfigure while saving the initial rc file, it's a waste and it
+  // breaks somethings (workspace names)
+  if (blackbox->isStartup()) return;
+
   load_rc();
   toolbar->load_rc();
   slit->load_rc();
This page took 0.027304 seconds and 4 git commands to generate.