summaryrefslogtreecommitdiff
path: root/src/actions.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-05 13:52:10 +0000
committerDana Jansens <danakj@orodu.net>2002-12-05 13:52:10 +0000
commit699de0368cded603bc40e66b0d65a1001e8ec494 (patch)
tree81f4e8803e02ccfc8497954b9455fcca0c4bcb87 /src/actions.cc
parent52cb7bd11ed83a57c4c1affcdac8a1f7d68ae551 (diff)
store the delta x/y for a motion sequence
Diffstat (limited to 'src/actions.cc')
-rw-r--r--src/actions.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actions.cc b/src/actions.cc
index b83b521d..ceb55b6c 100644
--- a/src/actions.cc
+++ b/src/actions.cc
@@ -149,10 +149,12 @@ void OBActions::motionHandler(const XMotionEvent &e)
{
if (!e.same_screen) return; // this just gets stupid
+ _dx = e.x - _posqueue[0]->pos.x();
+ _dy = e.y - _posqueue[0]->pos.y();
+
// 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 - _posqueue[0]->pos.x(), e.y - _posqueue[0]->pos.y());
+ (long)e.window, e.state, _dx, _dy);
}