From d7a30f93b517ac76816d0acea92e9c56ad5d6594 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 30 Dec 2002 22:27:46 +0000 Subject: so close to keybindings. wont link for now. --- src/bindings.hh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/bindings.hh') 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 #include 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); }; } -- cgit v1.2.3