From 593db0baee63c9ded0a596fc4915fb37770fd0d6 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 9 Feb 2014 11:52:55 -0500 Subject: [PATCH] default: Make the map animation more friendly --- src/compositor/plugins/default.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 6728daedc..4d51b309c 100644 --- a/src/compositor/plugins/default.c +++ b/src/compositor/plugins/default.c @@ -704,15 +704,15 @@ map (MetaPlugin *plugin, MetaWindowActor *window_actor) EffectCompleteData *data = g_new0 (EffectCompleteData, 1); ActorPrivate *apriv = get_actor_private (window_actor); - clutter_actor_move_anchor_point_from_gravity (actor, - CLUTTER_GRAVITY_CENTER); - - clutter_actor_set_scale (actor, 0.0, 0.0); + clutter_actor_set_pivot_point (actor, 0.5, 0.5); + clutter_actor_set_opacity (actor, 0); + clutter_actor_set_scale (actor, 0.5, 0.5); clutter_actor_show (actor); animation = clutter_actor_animate (actor, - CLUTTER_EASE_IN_SINE, + CLUTTER_EASE_OUT_QUAD, MAP_TIMEOUT, + "opacity", 255, "scale-x", 1.0, "scale-y", 1.0, NULL);