From a5cce085af703f66a66f073829db75bf9520fecc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20L=C3=BCbking?= <thomas.luebking@gmail.com>
Date: Mon, 18 Mar 2013 17:08:58 +0100
Subject: [PATCH] catch geometry updates of moving clients

and bind geometry change signals dynamically

REVIEW: 109570
---
 libkwineffects/kwinanimationeffect.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libkwineffects/kwinanimationeffect.cpp b/libkwineffects/kwinanimationeffect.cpp
index 9cdaa322f9..e8bc44e977 100644
--- a/libkwineffects/kwinanimationeffect.cpp
+++ b/libkwineffects/kwinanimationeffect.cpp
@@ -216,6 +216,8 @@ bool AnimationEffect::cancel(quint64 animationId)
                     }
                     d->m_animations.erase(entry);
                 }
+                if (d->m_animations.isEmpty())
+                    disconnectGeometryChanges();
                 return true;
             }
         }