From fbc516442d47048edf2b5201e0b956c85b782bac Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Dec 2002 08:54:43 +0000 Subject: [PATCH] add suport for XMotionEvents --- otk/eventhandler.cc | 2 ++ otk/eventhandler.hh | 3 +++ 2 files changed, 5 insertions(+) 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 &) {} -- 2.45.2