]> Dogcows Code - chaz/openbox/commitdiff
handle mouse motion too
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 09:01:55 +0000 (09:01 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 09:01:55 +0000 (09:01 +0000)
src/actions.cc
src/actions.hh

index 1b5e9c14fcc50ae50abe406e5f673826461ec09c..3f2e79f887970c624b4226d8f11965db818ba364 100644 (file)
@@ -112,12 +112,11 @@ void OBActions::keyPressHandler(const XKeyEvent &e)
 }
 
 
-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);
 }
 
 
index b2d03ead44b34197975d4299df887fd2d669c59a..3df4fe4aa392a793c16074b9e9b59b7173eb4dbc 100644 (file)
@@ -50,14 +50,7 @@ public:
 
   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);
 };
 
 }
This page took 0.023796 seconds and 4 git commands to generate.