]> Dogcows Code - chaz/openbox/commitdiff
fucked up shit
authorDana Jansens <danakj@orodu.net>
Mon, 30 Dec 2002 20:41:33 +0000 (20:41 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 30 Dec 2002 20:41:33 +0000 (20:41 +0000)
src/bindings.cc
src/bindings.hh
src/openbox.cc

index 8d889932fb50bee4e2a6e2ad08286a4ec4d2c25b..b854ba2568668954db3863e3b97829616ab9f170 100644 (file)
@@ -150,6 +150,7 @@ BindingTree *OBBindings::buildtree(const StringVect &keylist, int id)
     ret = new BindingTree(id);
     if (!p) ret->chain = false;
     ret->first_child = p;
+    printf("adding child %lx\n", (long)p);
     if (!translate(*it, ret->binding, true)) {
       destroytree(ret);
       ret = 0;
@@ -162,7 +163,7 @@ BindingTree *OBBindings::buildtree(const StringVect &keylist, int id)
 
 
 OBBindings::OBBindings()
-  : _curpos(&_keytree)
+  : _curpos(&_keytree), _mousetree(0)
 {
 }
 
index e4bd65f321afa1ae5a7083cbcf500a50d3608d3f..be73b51fefa4eb5c69de4cdca7393c5f059e00df 100644 (file)
@@ -49,7 +49,7 @@ private:
   BindingTree _keytree; // root node of the tree (this doesn't have siblings!)
   BindingTree *_curpos; // position in the keytree
 
-  BindingTree _mousetree; // this tree is a list. it has only siblings
+  BindingTree *_mousetree; // this tree is a list. it has only siblings
   
   int find_key(BindingTree *search);
   bool translate(const std::string &str, Binding &b, bool askey);
index 69092ecaa45653c636b6441e7541ad3fb23da8c8..e7ffb76bf76fe305619c3ff1b956724b6ec0376c 100644 (file)
@@ -155,10 +155,13 @@ Openbox::Openbox(int argc, char **argv)
   v.push_back("v");
   _bindings->add_key(v, 1);
   v.clear();
-//  v.push_back("C-x");
-//  v.push_back("C-z");
+  v.push_back("C-x");
+  v.push_back("C-z");
   v.push_back("a");
   _bindings->add_key(v, 2);
+  v.clear();
+  v.push_back("C-a");
+  _bindings->add_key(v, 3);
 
   _bindings->add_mouse("A-1", 1);
 
This page took 0.024522 seconds and 4 git commands to generate.