all repos — openbox @ 78a85881260eb537d60c05a26c048dc36b1b2089

openbox fork - make it a bit more like ryudo

nicer output
Dana Jansens danakj@orodu.net
commit

78a85881260eb537d60c05a26c048dc36b1b2089

parent

349ac3f0e3922473df3f03586cee69ed44ff618c

2 files changed, 6 insertions(+), 5 deletions(-)

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

@@ -21,7 +21,8 @@

while (p) { if (p->first_child) print_branch(p->first_child, str + " " + p->text); - printf("%d%s\n", p->id, (str + " " + p->text).c_str()); + if (!p->chain) + printf("%d%s\n", p->id, (str + " " + p->text).c_str()); BindingTree *s = p->next_sibling; delete p; p = s;

@@ -83,9 +84,8 @@ // set the proper chain status on the last node

p->chain = false; } - printf("<BUILDING>\n"); + printf("BUILDING:\n"); print_branch(ret, ""); - printf("</BUILDING>\n"); // successfully built a tree return ret;
M src/openbox.ccsrc/openbox.cc

@@ -150,8 +150,8 @@ _actions = new OBActions();

_bindings = new OBBindings(); OBBindings::StringVect v; -// v.push_back("C-x"); -// v.push_back("C-y"); + v.push_back("C-x"); + v.push_back("C-y"); v.push_back("v"); _bindings->add(v, 1); v.clear();

@@ -160,6 +160,7 @@ // v.push_back("C-z");

v.push_back("a"); _bindings->add(v, 2); + printf("CHAINS:\n"); _bindings->display(); ::exit(0);