From: Dana Jansens Date: Wed, 4 Dec 2002 08:54:43 +0000 (+0000) Subject: add suport for XMotionEvents X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=fbc516442d47048edf2b5201e0b956c85b782bac;p=chaz%2Fopenbox add suport for XMotionEvents --- diff --git a/otk/eventhandler.cc b/otk/eventhandler.cc index 6603b3e1..d61189e4 100644 --- a/otk/eventhandler.cc +++ b/otk/eventhandler.cc @@ -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: diff --git a/otk/eventhandler.hh b/otk/eventhandler.hh index a70343ed..bbc0449d 100644 --- a/otk/eventhandler.hh +++ b/otk/eventhandler.hh @@ -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 &) {}