]> Dogcows Code - chaz/openbox/blobdiff - otk/eventhandler.hh
install the shadow wrappers
[chaz/openbox] / otk / eventhandler.hh
index 8e39a8dc0db420b52f27c11fdfd7192b70680467..96bdff94432f2721f5eadef258848d2c7f5fda34 100644 (file)
@@ -7,11 +7,16 @@ extern "C" {
 #ifdef    SHAPE
 #include <X11/extensions/shape.h>
 #endif // SHAPE
+
+#ifdef    XKB
+#include <X11/XKBlib.h>
+#endif // XKB
+
 }
 
 namespace otk {
 
-class OtkEventHandler{
+class OtkEventHandler {
 public:
   //! Dispatches events to one of the other handlers based on their type.
   virtual void handle(const XEvent &e);
@@ -28,6 +33,9 @@ public:
   //! Called whenever a button of the pointer is released.
   virtual void buttonReleaseHandler(const XButtonEvent &) {}
 
+  //! Called whenever the pointer moved
+  virtual void motionHandler(const XMotionEvent &) {}
+
   //! Called whenever the pointer enters a window.
   virtual void enterHandler(const XCrossingEvent &) {}
 
@@ -117,10 +125,15 @@ public:
   virtual void clientMessageHandler(const XClientMessageEvent &);
 
 #if defined(SHAPE) || defined(DOXYGEN_IGNORE)
-  //! Called when a shape extention event fires
-  virtual void shapeHandler(const XShapeEvent &) {};
+  //! Called when a shape extension event fires
+  virtual void shapeHandler(const XShapeEvent &) {}
 #endif // SHAPE 
 
+#if defined(XKB) || defined(DOXYGEN_IGNORE)
+  //! Called when an xkb extension event fires
+  virtual void xkbHandler(const XkbEvent &) {}
+#endif // XKB
+
   virtual ~OtkEventHandler();
 
 protected:
This page took 0.023046 seconds and 4 git commands to generate.