summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authorkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-06 16:52:47 +0000
committerkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-06 16:52:47 +0000
commit673935ed3726de35cd4da1209c4970e673693968 (patch)
treee853790548fcbe9088fabf93c351d473cc7f75c8 /beryl-plugins/src/move.c
parente7ef36d9eb01d3cb22dce8387e013cbc8f1b1eab (diff)
downloadmarex-dev-673935ed3726de35cd4da1209c4970e673693968.tar.gz
marex-dev-673935ed3726de35cd4da1209c4970e673693968.tar.bz2
core + plugins: Make warpPointer() accept a CompScreen instead of CompDisplay.
Fixes crazy-cube-spinning and move-issues in multiscreen setups. git-svn-id: file:///beryl/trunk@3701 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index 02df1b8..380a80c 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -229,7 +229,7 @@ moveInitiate(CompDisplay * d,
xRoot = w->attrib.x + (w->width / 2);
yRoot = w->attrib.y + (w->height / 2);
- warpPointer(d, xRoot - d->pointerX, yRoot - d->pointerY);
+ warpPointer(w->screen, xRoot - d->pointerX, yRoot - d->pointerY);
}
}
}
@@ -490,8 +490,7 @@ static void moveHandleMotionEvent(CompScreen * s, int xRoot, int yRoot)
wy = workArea.y + (w->input.top >> 1);
wy += w->sizeHints.height_inc >> 1;
- warpPointer(s->
- display,
+ warpPointer(s,
0, wy - s->display->pointerY);
return;