From ada70dd68366c794faf71fa254701caf91b24f54 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 25 Feb 2013 20:33:37 -0500 Subject: [PATCH] workspace: Remove more dead code By the time zoomToOverview is called, an animation will always be in progress. https://bugzilla.gnome.org/show_bug.cgi?id=694469 --- js/ui/workspace.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 2bbe56a2b..67f3b939d 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1296,10 +1296,7 @@ const Workspace = new Lang.Class({ // Animate the full-screen to Overview transition. zoomToOverview : function() { // Position and scale the windows. - if (Main.overview.animationInProgress) - this._positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL); - else - this._positionWindows(WindowPositionFlags.INITIAL); + this._positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL); }, // Animates the return from Overview mode