From 81116a511f1dc87aa53e1a76f254c0a42602e014 Mon Sep 17 00:00:00 2001 From: Daniel Fore Date: Mon, 4 Jun 2012 12:53:43 -0700 Subject: [PATCH] smoother workspace transition with ease in out sin --- src/Main.vala | 4 ++-- src/Widgets/WorkspaceView.vala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main.vala b/src/Main.vala index f96c5a77..e58b75f2 100644 --- a/src/Main.vala +++ b/src/Main.vala @@ -431,9 +431,9 @@ namespace Gala in_group.set_position (-x2, -y2); group.set_child_above_sibling (in_group, null); - out_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300, + out_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400, x:x2, y:y2); - in_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300, + in_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400, x:0.0f, y:0.0f).completed.connect ( () => { end_switch_workspace (); }); diff --git a/src/Widgets/WorkspaceView.vala b/src/Widgets/WorkspaceView.vala index db205d8e..c314d3e9 100644 --- a/src/Widgets/WorkspaceView.vala +++ b/src/Widgets/WorkspaceView.vala @@ -41,7 +41,7 @@ namespace Gala } set { _workspace = value; - current_workspace.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300, + current_workspace.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400, x : workspaces.x + ((workspaces.get_children ().nth_data (_workspace).width + 10) * _workspace) - 5); } }