]> Dogcows Code - chaz/openbox/blobdiff - src/bindings.hh
allow python to grab the keyboard. have release events go to the grabs callback....
[chaz/openbox] / src / bindings.hh
index 32f422ff80c43fd64433256405e3ea28c043343c..a9e8c98609466ee4f9865385744eda026d0b002f 100644 (file)
@@ -83,6 +83,8 @@ private:
                   Client *client);
 
   CallbackList _eventlist[NUM_EVENTS];
+
+  PyObject *_keybgrab_callback;
   
 public:
   //! Initializes an Bindings object
@@ -111,12 +113,16 @@ public:
   //! Removes all key bindings
   void removeAllKeys();
 
-  void fireKey(int screen, unsigned int modifiers,unsigned int key, Time time);
+  void fireKey(int screen, unsigned int modifiers,unsigned int key, Time time,
+               KeyAction action);
 
   void setResetKey(const std::string &key);
 
   void grabKeys(bool grab);
 
+  bool grabKeyboard(PyObject *callback);
+  void ungrabKeyboard();
+
   bool addButton(const std::string &but, MouseContext context,
                  MouseAction action, PyObject *callback);
 
This page took 0.02075 seconds and 4 git commands to generate.