summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-10 07:30:40 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-10 07:30:40 +0000
commit012d318c1648a7de616ca6899fb1e44d6302eec6 (patch)
tree3f5eb0f33bbda736702ca4ab32f910389ba17aa3 /beryl-plugins/src/move.c
parent8ba00c364b937bb624a4c292221e1b6bc7db5881 (diff)
downloadmarex-dev-012d318c1648a7de616ca6899fb1e44d6302eec6.tar.gz
marex-dev-012d318c1648a7de616ca6899fb1e44d6302eec6.tar.bz2
move plugin: finally squash mouse pointer desync
git-svn-id: file:///beryl/trunk@1115 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index 1ca20ec..5f388e3 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -101,6 +101,7 @@ typedef struct _MoveDisplay
CompWindow *w;
int x;
int y;
+
KeyCode key[NUM_KEYS];
GLushort moveOpacity;
@@ -270,6 +271,9 @@ moveHandleMotionEvent (CompScreen * s, int xRoot, int yRoot)
md->x += xRoot - s->display->lastPointerX;
md->y += yRoot - s->display->lastPointerY;
+ if (md->w->syncWait)
+ return;
+
if (w->type & CompWindowTypeFullscreenMask)
{
dx = dy = 0;
@@ -454,7 +458,7 @@ moveHandleEvent (CompDisplay * d, XEvent * event)
moveHandleMotionEvent (s, d->pointerX, d->pointerY);
break;
case ClientMessage:
- if (event->xclient.message_type == d->wmMoveResizeAtom)
+ if (event->xclient.message_type == d->wmMoveResizeAtom)
{
CompWindow *w;