diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-30 22:27:46 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-30 22:27:46 +0000 |
| commit | d7a30f93b517ac76816d0acea92e9c56ad5d6594 (patch) | |
| tree | e6453231346cea176c4ea49c2f5edd408f0400a8 /src/bindings.hh | |
| parent | db1fb534b8f5a1f19710ac77ef2ce85c4c1270ec (diff) | |
so close to keybindings. wont link for now.
Diffstat (limited to 'src/bindings.hh')
| -rw-r--r-- | src/bindings.hh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/bindings.hh b/src/bindings.hh index 81b7075d..3fbf3b8d 100644 --- a/src/bindings.hh +++ b/src/bindings.hh @@ -6,11 +6,15 @@ @brief I dunno.. some binding stuff? */ +#include "actions.hh" + #include <string> #include <vector> namespace ob { +class OBClient; + typedef struct Binding { unsigned int modifiers; unsigned int key; @@ -54,8 +58,11 @@ private: int find_key(BindingTree *search) const; bool translate(const std::string &str, Binding &b, bool askey) const; BindingTree *buildtree(const StringVect &keylist, int id) const; - void OBBindings::assimilate(BindingTree *node); - + void assimilate(BindingTree *node); + + void grabMouseOnAll(bool grab); + void grabKeys(bool grab); + public: //! Initializes an OBBinding object OBBindings(); @@ -109,6 +116,11 @@ public: // for reseting too...) void display(); + + void fire(OBActions::ActionType type, Window window, unsigned int modifiers, + unsigned int key, Time time); + + void grabMouse(bool grab, const OBClient *client); }; } |
