all repos — openbox @ 624a06fdffadfadbf6ac14068bbd329cc0a5834f

openbox fork - make it a bit more like ryudo

build fixes for member funcs
Dana Jansens danakj@orodu.net
commit

624a06fdffadfadbf6ac14068bbd329cc0a5834f

parent

656f2fbecf7f74e497353a4bff902ec16937cfc4

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

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

@@ -149,7 +149,7 @@

int OBBindings::find(BindingTree *search) { BindingTree *a, *b; - a = _tree; + a = _tree.first_child; b = search; while (a && b) { if (a->binding != b->binding) {

@@ -206,7 +206,7 @@

if (!(tree = buildtree(keylist, id))) return false; // invalid binding requested - if (find_bind(_tree.first_child, tree) < -1) { + if (find(tree) < -1) { // conflicts with another binding destroytree(tree); return false;

@@ -226,7 +226,7 @@

if (!(tree = buildtree(keylist, 0))) return false; // invalid binding requested - ret = find_bind(_tree.first_child, tree) >= 0; + ret = find(tree) >= 0; destroytree(tree);