add suport for XMotionEvents
Dana Jansens danakj@orodu.net
2 files changed,
5 insertions(+),
0 deletions(-)
M
otk/eventhandler.cc
→
otk/eventhandler.cc
@@ -30,6 +30,8 @@ case ButtonPress:
return buttonPressHandler(e.xbutton); case ButtonRelease: return buttonReleaseHandler(e.xbutton); + case MotionNotify: + return motionHandler(e.xmotion); case EnterNotify: return enterHandler(e.xcrossing); case LeaveNotify:
M
otk/eventhandler.hh
→
otk/eventhandler.hh
@@ -28,6 +28,9 @@
//! 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 &) {}