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.
This commit is contained in:
parent
f89b95c2aa
commit
bab5a006d8
@ -152,11 +152,10 @@ WindowManager.prototype = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
|
|
||||||
actor.opacity = 0;
|
actor.opacity = 0;
|
||||||
actor.show();
|
actor.show();
|
||||||
|
|
||||||
/* scale window up from 0x0 to normal size */
|
/* Fade window in */
|
||||||
this._mapping.push(actor);
|
this._mapping.push(actor);
|
||||||
Tweener.addTween(actor,
|
Tweener.addTween(actor,
|
||||||
{ opacity: 255,
|
{ opacity: 255,
|
||||||
@ -174,8 +173,7 @@ WindowManager.prototype = {
|
|||||||
_mapWindowDone : function(shellwm, actor) {
|
_mapWindowDone : function(shellwm, actor) {
|
||||||
if (this._removeEffect(this._mapping, actor)) {
|
if (this._removeEffect(this._mapping, actor)) {
|
||||||
Tweener.removeTweens(actor);
|
Tweener.removeTweens(actor);
|
||||||
actor.set_scale(1.0, 1.0);
|
actor.opacity = 255;
|
||||||
actor.move_anchor_point_from_gravity(Clutter.Gravity.NORTH_WEST);
|
|
||||||
shellwm.completed_map(actor);
|
shellwm.completed_map(actor);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user