handle mouse motion too
Dana Jansens danakj@orodu.net
2 files changed,
5 insertions(+),
13 deletions(-)
M
src/actions.cc
→
src/actions.cc
@@ -112,12 +112,11 @@ (long)e.window, e.state, e.keycode);
} -void OBActions::drag(Window win, otk::Point delta, unsigned int modifiers, - unsigned int button, Time time) +void OBActions::motionHandler(const XMotionEvent &e) { - (void)win;(void)delta;(void)modifiers;(void)button;(void)time; - - // XXX: some guile shit... + // XXX: i can envision all sorts of crazy shit with this.. gestures, etc + printf("GUILE: MOTION: win %lx modifiers %u x %d y %d\n", + (long)e.window, e.state, e.x, e.y); }
M
src/actions.hh
→
src/actions.hh
@@ -50,14 +50,7 @@ virtual void leaveHandler(const XCrossingEvent &e);
virtual void keyPressHandler(const XKeyEvent &e); - //! Notify that a mouse drag is taking place. - /*! - @param win The window the drag is on - @param delta The change in position of the mouse pointer - @param modifiers The modifier state during the drag. - */ - void drag(Window win, otk::Point delta, unsigned int modifiers, - unsigned int button, Time time); + virtual void motionHandler(const XMotionEvent &e); }; }