]> Dogcows Code - chaz/openbox/commitdiff
add suport for XMotionEvents
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 08:54:43 +0000 (08:54 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 08:54:43 +0000 (08:54 +0000)
otk/eventhandler.cc
otk/eventhandler.hh

index 6603b3e13509387c6cd196cb0a720b3109f353a9..d61189e4713b8f2a1f8497cdea67b63f03bbe5c9 100644 (file)
@@ -30,6 +30,8 @@ void OtkEventHandler::handle(const XEvent &e)
     return buttonPressHandler(e.xbutton);
   case ButtonRelease:
     return buttonReleaseHandler(e.xbutton);
+  case MotionNotify:
+    return motionHandler(e.xmotion);
   case EnterNotify:
     return enterHandler(e.xcrossing);
   case LeaveNotify:
index a70343edac8e3567bc989a83b9e4f5957f352514..bbc0449db5ae8fb4fb6a20f69b0ca98f4e86d55f 100644 (file)
@@ -28,6 +28,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 &) {}
 
This page took 0.02256 seconds and 4 git commands to generate.