summaryrefslogtreecommitdiff
path: root/src/bindings.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-31 06:59:46 +0000
committerDana Jansens <danakj@orodu.net>2002-12-31 06:59:46 +0000
commita6661d587cd043e1894418c091b8dbd4e18a7d55 (patch)
treeb0baafd6222cc77d688ffb3477d48f4fe3ae4bd2 /src/bindings.hh
parentd7a30f93b517ac76816d0acea92e9c56ad5d6594 (diff)
bindings work. now they have a reset key too.
Diffstat (limited to 'src/bindings.hh')
-rw-r--r--src/bindings.hh15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/bindings.hh b/src/bindings.hh
index 3fbf3b8d..e04a7b18 100644
--- a/src/bindings.hh
+++ b/src/bindings.hh
@@ -28,7 +28,6 @@ typedef struct Binding {
typedef struct BindingTree {
Binding binding;
- std::string text;
int id; // the id given for the binding in add()
bool chain; // true if this is a chain to another key (not an action)
@@ -54,6 +53,8 @@ private:
BindingTree *_curpos; // position in the keytree
BindingTree *_mousetree; // this tree is a list. it has only siblings
+
+ Binding _resetkey; // the key which resets the key chain status
int find_key(BindingTree *search) const;
bool translate(const std::string &str, Binding &b, bool askey) const;
@@ -61,7 +62,6 @@ private:
void assimilate(BindingTree *node);
void grabMouseOnAll(bool grab);
- void grabKeys(bool grab);
public:
//! Initializes an OBBinding object
@@ -109,18 +109,13 @@ public:
*/
int find_key(const StringVect &keylist);
- void process(unsigned int modifiers, unsigned int key);
-
- // XXX: need an exec() function or something that will be used by openbox
- // and hold state for which chain we're in etc. (it could have a timer
- // for reseting too...)
-
- void display();
-
void fire(OBActions::ActionType type, Window window, unsigned int modifiers,
unsigned int key, Time time);
+ void setResetKey(const std::string &key);
+
void grabMouse(bool grab, const OBClient *client);
+ void grabKeys(bool grab);
};
}