From 69322941e1b6c1a9603d6fd7c7227e23e28d9ab0 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 11 Feb 2008 10:35:45 +0100 Subject: Use internal animation geometry instead of server geometry for head determination while the animation is running. --- put.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/put.c b/put.c index e1c9f07..5b53eaf 100644 --- a/put.c +++ b/put.c @@ -370,7 +370,22 @@ putInitiateCommon (CompDisplay *d, /* no head given, so use the current head if this wasn't a double tap */ if (pd->lastType != type || pd->lastWindow != w->id) - head = outputDeviceForWindow (w); + { + if (pw->adjust) + { + /* outputDeviceForWindow uses the server geometry, + so specialcase a running animation, which didn't + apply the server geometry yet */ + head = outputDeviceForGeometry (s, + w->attrib.x + pw->tx, + w->attrib.y + pw->ty, + w->attrib.width, + w->attrib.height, + w->attrib.border_width); + } + else + head = outputDeviceForWindow (w); + } } else { -- cgit v1.1