aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2013-01-28 21:19:40 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2013-01-30 09:45:22 (GMT)
commitded9ad74273c8e70d10138922295f2ef9d040329 (patch)
tree7b8593743478f9de9e5441aa4c16ff33b8a4f5ac
parent00a71b44b98a4d9fc96216a79c6e9236f64932d6 (diff)
use Size instead of Scale animation
BUG: 310945
-rw-r--r--kwin/effects/maximize/package/contents/code/maximize.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/kwin/effects/maximize/package/contents/code/maximize.js b/kwin/effects/maximize/package/contents/code/maximize.js
index 744021b..5013c84 100644
--- a/kwin/effects/maximize/package/contents/code/maximize.js
+++ b/kwin/effects/maximize/package/contents/code/maximize.js
@@ -35,14 +35,14 @@ var maximizeEffect = {
window: window,
duration: maximizeEffect.duration,
animations: [{
- type: Effect.Scale,
+ type: Effect.Size,
to: {
- value1: 1.0,
- value2: 1.0
+ value1: newGeometry.width,
+ value2: newGeometry.height
},
from: {
- value1: oldGeometry.width / newGeometry.width,
- value2: oldGeometry.height / newGeometry.height
+ value1: oldGeometry.width,
+ value2: oldGeometry.height
}
}, {
type: Effect.Translation,