[gnome-shell] workspace: Remove more dead code



commit ada70dd68366c794faf71fa254701caf91b24f54
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 25 20:33:37 2013 -0500

    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 2bbe56a..67f3b93 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]