summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-12-28 18:56:11 +0100
committerDanny Baumann <dannybaumann@web.de>2008-12-28 18:56:11 +0100
commitd2a54bcbe81344ba726512ce66880d5e700bdfd8 (patch)
treecae171ec7ed0d279436a51228a325ed3b7f67934
parentd3166c325301de8bda56b0567d2d617be90e7cb8 (diff)
downloadput-d2a54bcbe81344ba726512ce66880d5e700bdfd8.tar.gz
put-d2a54bcbe81344ba726512ce66880d5e700bdfd8.tar.bz2
Use moveWindow / syncWindowPosition again.
When not doing so, we'd have to deal with X protocol asynchronities.
-rw-r--r--put.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/put.c b/put.c
index ec204bd..88ff421 100644
--- a/put.c
+++ b/put.c
@@ -156,14 +156,13 @@ adjustPutVelocity (CompWindow *w)
static void
putFinishWindowMovement (CompWindow *w)
{
- XWindowChanges xwc;
-
PUT_WINDOW (w);
- xwc.x = pw->targetX;
- xwc.y = pw->targetY;
-
- configureXWindow (w, CWX | CWY, &xwc);
+ moveWindow (w,
+ pw->targetX - w->attrib.x,
+ pw->targetY - w->attrib.y,
+ TRUE, TRUE);
+ syncWindowPosition (w);
if (w->state & (MAXIMIZE_STATE | CompWindowStateFullscreenMask))
updateWindowAttributes (w, CompStackingUpdateModeNone);