summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk/eventhandler.cc2
-rw-r--r--otk/eventhandler.hh3
2 files changed, 5 insertions, 0 deletions
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 &) {}