all repos — openbox @ 6b3f5abde4139d044312d5a3ab53c63e1acf371b

openbox fork - make it a bit more like ryudo

dont reconfigure during startup. thats a waste and screws up stuff!
Dana Jansens danakj@orodu.net
commit

6b3f5abde4139d044312d5a3ab53c63e1acf371b

parent

90239e2bfa0fe28fa55b3c31a6c18ca7939291f7

1 files changed, 9 insertions(+), 3 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -613,8 +613,9 @@ resource.col_direction = BottomTop;

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 @@ if (it == end)

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::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();