From bab5a006d814086cc7959a406073e0e0676d39e6 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 2 Apr 2010 20:30:10 +0200 Subject: [PATCH] windowManager: Fix up map effect Update comment and set the opacity rather than scaling in _mapWindowDone, also as we don't have to move the anchor point's gravity for this effect. --- js/ui/windowManager.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 597e34a45..2e497de0b 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -152,11 +152,10 @@ WindowManager.prototype = { return; } - actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER); actor.opacity = 0; actor.show(); - - /* scale window up from 0x0 to normal size */ + + /* Fade window in */ this._mapping.push(actor); Tweener.addTween(actor, { opacity: 255, @@ -174,8 +173,7 @@ WindowManager.prototype = { _mapWindowDone : function(shellwm, actor) { if (this._removeEffect(this._mapping, actor)) { Tweener.removeTweens(actor); - actor.set_scale(1.0, 1.0); - actor.move_anchor_point_from_gravity(Clutter.Gravity.NORTH_WEST); + actor.opacity = 255; shellwm.completed_map(actor); } },