summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-27 18:52:48 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-27 18:52:48 +0000
commit6405a5f5f4d09b17dff403429c0f0077fe8f1c71 (patch)
tree47921008430b433cac4c83e519d9bab187730436 /beryl-plugins/src/wobbly.c
parentc344fb07b194b4ac88d1cf9f78901f36d292c9cb (diff)
downloadmarex-dev-6405a5f5f4d09b17dff403429c0f0077fe8f1c71.tar.gz
marex-dev-6405a5f5f4d09b17dff403429c0f0077fe8f1c71.tar.bz2
MAJOR CODE CLEANUP
beryl no longer uses any extern'd variables, and has get() functions for the things that can't be static const'd git-svn-id: file:///beryl/trunk@837 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 68dde6b..1c82ebb 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -2845,12 +2845,12 @@ wobblyHandleEvent (CompDisplay * d, XEvent * event)
int dx, dy;
if (ww->state & CompWindowStateMaximizedHorzMask)
- dx = pointerX - lastPointerX;
+ dx = d->pointerX - d->lastPointerX;
else
dx = 0;
if (ww->state & CompWindowStateMaximizedVertMask)
- dy = pointerY - lastPointerY;
+ dy = d->pointerY - d->lastPointerY;
else
dy = 0;
@@ -3156,7 +3156,8 @@ wobblyWindowResizeNotify (CompWindow * w)
ww->model->anchorObject->immobile = FALSE;
ww->model->anchorObject = modelFindNearestObject (ww->model,
- pointerX, pointerY);
+ w->screen->display->pointerX,
+ w->screen->display->pointerY);
ww->model->anchorObject->immobile = TRUE;
modelAdjustObjectPosition (ww->model,