all repos — openbox @ fbc516442d47048edf2b5201e0b956c85b782bac

openbox fork - make it a bit more like ryudo

add suport for XMotionEvents
Dana Jansens danakj@orodu.net
commit

fbc516442d47048edf2b5201e0b956c85b782bac

parent

a21c0c55ca06fed3882f2417a8e0862f314dd434

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M otk/eventhandler.ccotk/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.hhotk/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 &) {}